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?

4 comments
don't use local script. change it to normal script
Why are you using OfClass?
And are you getting an error code? What i think it is that it it's not actually accsessing the animation.
I just change the help thing read it now please help i have to do this so i can go on with my game