menu
Roblox Forum Archive
Home
User Search
Forums
Donate
search
settings
Home
User Search
Forums
Donate
launch
Go to User Dashboard
Forums
Scripters
Math thing (HARD)
chevron_left
chevron_left
chevron_left
of
1
chevron_right
chevron_right
chevron_right
Math thing (HARD)
LarzCaetano
Join Date: 2015-08-26
Post Count: 280
#182834667
Monday, February 01, 2016 4:47 PM GMT
How can i make the player legs move in the direction of the player is walking? Like, if the player is holding W and A keys, he would go to the forward-diagonal, how can i find the direction and set the legs to follow that?
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
Out0fTime
Join Date: 2015-12-25
Post Count: 13
#182834945
Monday, February 01, 2016 4:53 PM GMT
Move Direction which is located in Humanoid tells you which direction the character is moving to.
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
LarzCaetano
Join Date: 2015-08-26
Post Count: 280
#182839366
Monday, February 01, 2016 6:54 PM GMT
so, with that can i use math.atan2(v.z,v.x) and then set this angle to the y axis on the legs?
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
morash
Join Date: 2010-05-22
Post Count: 5834
#182842206
Monday, February 01, 2016 8:17 PM GMT
If you weld the legs to character, it wouldn't matter which direction they're moving.
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
chevron_left
chevron_left
chevron_left
of
1
chevron_right
chevron_right
chevron_right