#function stopAnims() doesnt work.

3 messages · Page 1 of 1 (latest)

worthy ember
#
local animEvent = game.ReplicatedStorage.Animation

function stopAnims(player)
    local hum = player.Character.Humanoid
    local animator = hum.Animator
    for i,v in pairs(animator:GetPlayingAnimationTracks()) do
        v:Stop()
    end
end

animEvent.OnServerEvent:Connect(function(plr, isRunning)
    if isRunning == true then
        stopAnims(plr)
        plr.Character.Animate.walk.WalkAnim.AnimationId = "rbxassetid://13684904314"
    elseif isRunning == false then
        stopAnims(plr)
        plr.Character.Animate.walk.WalkAnim.AnimationId = "rbxassetid://180426354"
    end
end)```

also I already tried the animator:GetPlayingAnimationTracks thing
steel epoch
#

what doesnt work about it

#

put some prints in it and see where it gets up to