It should be fairly ez lol.
CanDoDmg = false
Keybind = "l"
dmg = 10
local cooldown = false
local plr = game.Players.LocalPlayer
local mouse = plr:GetMouse()
mouse.KeyDown:Connect(function(key)
if key == Keybind then
if cooldown == false then
cooldown = true
CanDoDmg = true
local anim = script.Parent.Humanoid:LoadAnimation(script.Animation)
anim:Play()
script.Parent.RightHand.Touched:connect(function(hit)
if hit.Parent.Name == "Humanoid" then
if CanDoDmg == true then
hit.Parent.Humanoid:TakeDamage(dmg)
CanDoDmg = false
wait(1.5)
CanDoDmg = true
end
end
end)
end
end
end)
