07-11-2017 01:15 AM I tried doing this, but it does nothing at all, with no errors in output, HELP!!!
1 | wait( 2 ) |
2 | local humanoid = script.Parent.Parent.Parent:WaitForChild( "Humanoid" ) |
3 | script.Parent.Acceleration = humanoid.MoveDirection |
You have to actively update the variable.. humanoid.MoveDirection
will always be 0, 0, 0 at spawn. Use the Changed
event? :D
1 | local humanoid = script.Parent.Parent.Parent:WaitForChild( "Humanoid" ); |
2 |
3 | humanoid.Changed:Connect( function () |
4 | script.Parent.Acceleration = humanoid.MoveDirection |
5 | end ) |