Animations Playing In Studio, But Not In The Actual Game?!(SOLVED)

Whenever I go to test my animation for an NPC, it always works in studio, but when I go to the actual game, it does not play it at all.

Here is a link to my game if you want to test this:

Here are two videos for proof:

In Studio:
https://doy2mn9upadnk.cloudfront.net/uploads/default/original/4X/6/e/b/6eb4bc02e9a41b6070a278683933ae1c322b59df.mp4
In Actual Game:
https://doy2mn9upadnk.cloudfront.net/uploads/default/original/4X/6/0/6/606eb33fe7e3f27c8fd8a01974b7774a8c932c39.mp4

Here is my script as well if you want to view it:
	while true do
 local animation = Instance.new("Animation")
 animation.AnimationId = "rbxassetid://4063433046"

local loadedAnimation = script.Parent.Humanoid:LoadAnimation(animation)
 loadedAnimation:Play()
wait(5)
	end

I do not remember this happening before and it happened ever since I put in that script. To be honest it is really bugging me and I hope that it is able to be fixed soon. Thanks For Reading!:grin:

This topic was automatically closed after 1 minute. New replies are no longer allowed.