Hello, A month ago I made a mount with animations such a walk, jump, idle.
And got a problem like the animations won’t stop.
I am getting no errors.
So let me explain:
When I am equipping mount, then while walking unequipping it the animations won’t stop, they keep playing.
Source (server script):
unequipE.OnServerEvent:Connect(function(plr, mount, char, hum)
if char and char.Humanoid.Health >= 1 then
StopAllAnimsAlt(hum)
local tracks = hum:GetPlayingAnimationTracks()
local m = char:FindFirstChild("Mount")
if m then
equippped = false
m:Destroy()
char.Sprint.Disabled = false
char.Crouch.Disabled = false
char.MMA.Disabled = false
hum.WalkSpeed = 16
hum.JumpPower = 50
for _,v in pairs(tracks) do
v:Stop()
end
end
end
end)
Walk and idle animations are looped