Im a newbie so i dont have an idea of how to add a damage script here. Need help. TY
local mouse = game.Players.LocalPlayer:GetMouse()
local canDamage = false
script.Parent.Equipped:Connect(function()
local Wield = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(script.Wield)
Wield:Play()
mouse.Button1Down:Connect(function()
local Wield = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(script.Wield)
local Attack = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(script.Attack)
Wield:Stop()
Attack:Play()
end)
mouse.Button1Up:Connect(function(hit)
--damage here
end)
end)

5 comments
This is in a tool?
looks like a tool
sir you gotta explain what are you trying to make
Who are we damaging? what are you trying to make? Is this a tool? Expand
im trying to make a sword. sorry.