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 2 years 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 — 2y
0
Didn't work :( Halbolonen 20 — 2y

Answer this question