07-11-2017 01:15 AM I tried doing this, but it does nothing at all, with no errors in output, HELP!!!
wait(2)
local humanoid = script.Parent.Parent.Parent:WaitForChild("Humanoid")
script.Parent.Acceleration = humanoid.MoveDirection
07-11-2017 01:15 AM I tried doing this, but it does nothing at all, with no errors in output, HELP!!!
wait(2)
local humanoid = script.Parent.Parent.Parent:WaitForChild("Humanoid")
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
local humanoid = script.Parent.Parent.Parent:WaitForChild("Humanoid");
humanoid.Changed:Connect(function()
script.Parent.Acceleration = humanoid.MoveDirection
end)
This discussion is preserved as it was. New answers, comments, and votes are closed.