Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How to make particle acceleration equal to Player 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

1 answer

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.