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

I want to make glory kill but the event touched loops ?

Asked by 2 years ago
Edited by Xapelize 2 years ago

when u press e it's like loops and when u touch another player it's playing animation can I make it only once?

tool.Handle.Touched:Connect(function(hit)
    if hit.Parent.Humanoid.Health <= 30 then
        controls:Disable()
        track3 = script.Parent.Parent.Humanoid:LoadAnimation(script.Parent.Animation2)
        track3.Priority = Enum.AnimationPriority.Action2
        track3:Play()
        track4 = hit.Parent.Humanoid:LoadAnimation(workspace["Glory Kills"]["Glory kill rig stick 2"])
        track4.Priority = Enum.AnimationPriority.Action2
        track4:Play()

        wait(3)
        track3:Stop()
        track4:Stop()
        controls:Enable()
        debounce2 = false
        wait(16)



    end)
end
end)
end
end

end)
end)
0
Make sure you check the debounce in line 2 SuperBlockUAlt 40 — 2y

Answer this question