I tested on my studio and it worked perfectly, I don't know what's wrong with yours but the only thing that I might be able to help with is instead of having the script inside the humanoid, have it in the model, this is the code that I used
local Humanoid = script.Parent:WaitForChild('Humanoid')
local Animation = script:WaitForChild("Animation")
local LoadedAnimation = Humanoid:LoadAnimation(Animation)
LoadedAnimation:Play()
hope this helps! if it works plz accept my answer lol
Also, if you are using a localscript, make sure that it is not in the workspace. This means if the parent of the model is workspace
4 comments
Hey there. Where is this script located and what type of script is it?
in the humanoid and a regular script
Have you gotten any errors?
no