Code That stops the animation: game.Workspace.Boy.Script4.Enabled = false
game.Workspace.Boy.Script5.Enabled = true
Code that runs the animation: local animation = script:WaitForChild(‘Dance’)
local humanoid = script.Parent:WaitForChild(‘Humanoid’)
local dance = humanoid:LoadAnimation(animation)
dance:play()
I can’t get the aniamtion to stop running and it stills runs while another animation runs.
local AnimationTracks = game.Workspace.Boy.Humanoid:GetPlayingAnimationTracks()
-- Stop all playing animations
for i, track in pairs (AnimationTracks) do
track:Stop()
end