Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Troubles with animating a tool after pressing Q and the tool popping up. Can someone help please?

Asked by 6 years ago

So I have finally fixed the tool problem in my previous question by adding weld onto it along with a hotkey, but now I wish to add an animation(Like levitation) to the said tool/model.. So far I have added a script inside it and then an animation inside that script and then inserted the animation id into the animation. This is the script:

local animation = script:WaitForChild('Animation')
local humanoid = script.Parent:WaitForChild('Humanoid')
local dance = humanoid:LoadAnimation(animation)
dance:Play()

When I went to test if it works, I pressed Q.. The tool popped up and it was behind me, following me constantly but it didn't execute the animation.. Please, may someone help me?

0
Is this a normal script or a local script? If it's a regular Script then you would do: humanoid.Animator:LoadAnimation(animation) UgOsMiLy 1074 — 6y
0
Yeah it's a regular script. RandomAccount90082 -3 — 6y
0
I just tested it, still doesn't work :( RandomAccount90082 -3 — 6y

Answer this question