--Put this script in game.StarterPlayer.StarterCharacterScripts
--Put the punch animation id on the animation inside this script


local humanoid = script.Parent.Humanoid

local mouse = game.Players.LocalPlayer:GetMouse()

mouse.Button1Down:Connect(function()
	if script.Parent:FindFirstChildOfClass("Tool") == nil and script.DamagePlayers.Debounce.Value == false then
		local punchTrack = humanoid:LoadAnimation(script.Animation)
		punchTrack:Play()
		script.RemoteEvent:FireServer()
		wait(script.Cooldown.Value)
		punchTrack:Stop()
	end
end)
