I searched over youtube for some animation scripts and it works perfectly for them as they see the animation on the cilent side, but as soon as i insert the script it will only play on the server side and not the cilent side. Any solutions?
local animation = script:WaitForChild(“Dance”)–“Dance” is the animation’s name
local humaniod = script.Parent.Parent:WaitForChild(“Humanoid”)
local dance = humaniod:LoadAnimation(animation)
dance:Play()–this makes it play
dance.Looped = true–this makes sure that the animation is looped
–the animation is under the script, you can rename it but you would have to change the script.Put your anim ID where the anim is instead of mine
local animation = script:WaitForChild("Dance") -- "Dance" is the animation’s name
local animator = script.Parent.Parent.Humanoid:WaitForChild("Animator")
local dance = animator:LoadAnimation(animation)
dance:Play() -- this makes it play
dance.Looped = true --this makes sure that the animation is looped
I replaced the script with this and it seems to be giving the same issue. The NPC will only play the animation on the server side but not for the client side.