script.Parent.Equipped:connect(function(mouse)
mouse.Button1Down:connect(function()
local f = Instance.new("Part", game.Workspace)
local handle = script.Parent.Handle
f.Position = handle.Position
f.CanCollide = false
f.Transparency = 1
local fl = Instance.new("Fire", f)
local bv = Instance.new("BodyVelocity", f)
bv.Velocity = (mouse.hit.p - handle.Position).unit*100
local db = false
f.Touched:connect(function(hit)
if db then return end
db = true
if hit.Parent.Name == game.Players.LocalPlayer.Name then
print("")
else
local hum = hit.Parent:FindFirstChild("Humanoid")
if hum then
hum.Health = hum.Health - 30
game:GetService("Debris"):AddItem(f,4)
end
end
end)
end)
end)
How do I make it do damage and debris doesn't work |