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:
In Actual Game:

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

local loadedAnimation = script.Parent.Humanoid:LoadAnimation(animation)

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.