humanoid = game.Players.LocalPlayer.Character:WaitForChild("Humanoid")
right = script:WaitForChild("RightPunch")
left = script:WaitForChild("LeftPunch")
idle = script:WaitForChild("Idle")
enabled = false
Mouse = game.Players.LocalPlayer:GetMouse()
Mouse.KeyDown:connect(function(key)
if key == 'y' then
local anim = humanoid:LoadAnimation(idle)
if enabled == false then
print ('Stance Enabled')
anim:Play()
enabled = true
elseif enabled == true then
anim:Stop()
enabled = false
end
end
if key == 'e' then
local anim = humanoid:LoadAnimation(right)
if enabled == true then
anim:Play()
wait(0.6)
else
print('Not in stance')
end
elseif key == 'q' then
local anim = humanoid:LoadAnimation(left)
if enabled == true then
anim:Play()
wait(0.6)
else
print('Not in stance')
end
end
end)
What do I add to this to make it do damage?

2 comments
I am going to use this.
Feel Free