Soo I got this script that plays an animation whenever the player says: '/e bouncydance'.
game.Players.PlayerAdded:connect(function(Plr)
Plr.Chatted:connect(function(msg)
if msg == "/e bouncydance" then
A = Instance.new("Animation", Plr.Character)
A.AnimationId = "rbxassetid://1746899451"
track = Plr.Character.Humanoid:LoadAnimation(A)
track:Play()
end
end)
end)
The problem is that when the player moves the animation keeps on playing. Could you please tell me what to add so the emote stops playing when the player moves?
Thank you :>

2 comments
When you were making the animation, what priority did you set it at? The core priority should make it stop when the player moves, whereas the Action priority shouldn't stop.
Btw, the second arg (parent) from instance.new is deprecated, don't use it anymore..