Animation Script not working

Hey,
I have recently been having an issue where my ‘Load Animation’ script is not working.
Yesterday the script was functioning fine.

I have tried renaming the dummy, renaming the script, modifying the script, disabling and enabling the script, deleting the script and recreating it, closing and reopening Studio, moving parts around the dummy further away from it, and the Output Bar is not stating anything about the failing script.

Here is the script I’m using:

local Animation = script:WaitForChild("Animation")
local NPC = script.Parent:WaitForChild("Humanoid")
local LoadAnim = NPC:LoadAnimation(Animation)
LoadAnim:Play()

Is the AnimationID you’re using created by you or your group? We need more context

It is created by me

30 characters

Is the “animation” inside of the script an actual Animation object?

Are there any anchored parts in the NPC?

I think I have anchored all of them, am I meant to do the opposite?

Ah, this is why. Make sure the NPC is properly rigged (if you used a default Block Rig then you’re fine) and that all BaseParts inside of it are unachored