So i have a animation script on my NPC but the problem is that it only works when clicking run and not when clicking play or play here, why is that?
here is the animation script
local animation = script:WaitForChild('WaveAnim')
local humanoid = script.Parent:WaitForChild('Humanoid')
local dance = humanoid:LoadAnimation(animation)
dance:Play()
dance.Looped = true

4 comments
make sure the priority is the right priority
what do you mean? Im pretty new to roblox studio
dance.Priority = Enum.AnimationPriority.Action
Sorry but it is still not working