I've created an NPC and coded a script (not a localscript) and whenever I press test or Team test, I can see the animation clearly while my friend does not see the animation on the NPC at all, why could this be happening? I put it on a dummy on the workspace, and inside that dummy, I inserted a script and inside that, I inserted the Animation ID. Down below is the code I am using but only I can see it, can anyone help me out with this? I am also very new to coding so Im sorry!
local animation = script:WaitForChild('Animation')
local humanoid = script.Parent:WaitForChild('Humanoid')
local dance = humanoid:LoadAnimation(animation)
dance:Play()

8 comments
Oh, Thanks so much, Im really sorry but Im new to the community and coding, what is a string value?
Also how would I change mine?
I tried copying yours exactly but it didn't work
Go to https://developer.roblox.com/en-us/api-reference/class/StringValue and then hover your mouse over the NPC in the workspace and click the + button and search stringvalue and click it and then name it to "Stance"
It still won't work and I also am confused about StringValue, Im so sorry but I really appreciate your help!
Wait, wait, wait. Does your NPC have a Humanoid?
Yes it does
Well i dont know then.