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)

1 comment

0

Make sure you check the debounce in line 2