Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

Animation doesn't stop looping even with AnimationTrack.Looped set to false?

Asked by 1 year ago
script.Parent.Activated:Connect(function()
    print("Tool activated!")
    print(script.Parent.Parent)
    local Animation = game.ServerStorage.SwordSwing
    local LoadedAnim = script.Parent.Parent:WaitForChild("Humanoid"):LoadAnimation(Animation)
    LoadedAnim.Priority = Enum.AnimationPriority.Action
    LoadedAnim.Looped = false
    print(LoadedAnim.Looped)
    LoadedAnim:Play()
    LoadedAnim.Stopped:wait()
    print("stopped")
end)

Outputs LoadedAnim.Looped as false and also prints stopped, but animation continues.

0
Try LoadedAnim:Stop() after printing stopped T3_MasterGamer 2189 — 1y
0
Didn't work :( Halbolonen 20 — 1y

Answer this question