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?

3 comments

0

Is this a normal script or a local script? If it's a regular Script then you would do: humanoid.Animator:LoadAnimation(animation)

0

Yeah it's a regular script.

0

I just tested it, still doesn't work :(