local animation = script:WaitForChild('Animation')
local humanoid = script.Parent:WaitForChild('Humanoid')
local animator = humanoidt:WaitForChild('Animator')
local JumpScare = animator:LoadAnimation(animation)
if it doesnt work and there is an error, please show us the error too!
What this thing said above is true, but you should use the Animator to load your animations in the future. Using deprecated functions over working ones are not suggested as it can block your path on becoming a fine scripter one day. I can see your potential as an excellent boi of scripter, so do the best!