okay i tried to figure this out i cant get it so here is my script

player = game.Players.LocalPlayer

mouse = player:GetMouse()

Punch = script:WaitForChild("Punch")

enabled = true

mouse.Button1Down:connect(function()
	if enabled then
		enabled = false
		
		local animateTrack = player.Character.Humanoid:LoadAnimation(Punch)
		animateTrack:Play()
		
		enabled = true
	end
end)

i need it to work in a HopperBin and have damage to other players

P.S i know this works without anything equipped which is what i don't want if you can help than you

1 comment

0

fixed the lua so its all in lua know