Hi, each time I try and run a animation onto a NPC, it works in studio however it never works when I play the actual game multiplayer. I've experienced this a few times, often I can fix it but this time I couldn't. Is there any chance someone could help me out?
local Anim = script.Parent:WaitForChild('Animate')
repeat wait() until Anim
local AnimTrack = script.Parent.Humanoid:LoadAnimation(Anim)
AnimTrack:Play()
This is the code I had. Thank you to anyone who answers

2 comments
Are you using a LocalScript :)?
No I'm using a regular script. I tried using a local script but that doesn't work in either solo or multiplayer.