Hello i'm making a Shooting game and a script that makes for every player a new npc that only they can see and a animation must play in the npc but that is not the problem the problem is that the animation does not want to play in the clone but the non cloned npc does the animation i don't under stand
Here is the script
wait(4) local hum = script.Parent.Humanoid local anim = hum:LoadAnimation(script.Parent.cheeto) repeat anim:Play() wait(2) until true == false
here is where the script is
Script : in the npc and it is a normal script
NPC: Game.Workspace
help?
Make sure it is a server-side script. Assuming that NPC is in workspace and the Animation is in the script.
wait(4) local humanoid = script.Parent.Humanoid local anim = humanoid:LoadAnimation(script.AnimationName) anim:Play() wait(2) anim:Stop()