The script I'm using could be incorrect or wrongly timed. I have no clue, so could anyone help? Here's the script.
local weapon = script.Parent.Parent.Handle.HitPart
local dmg = script.Parent.Parent.Interval.Value * 50 -- Damage
weapon.Touched:Connect(function(part)
if part.Parent:FindFirstChild("Humanoid") then
local humanoid = part.Parent:FindFirstChild("Humanoid")
humanoid:TakeDamage(dmg)
script:Destroy()
if dmg then
dmg:Destroy()
end
end
end)
I hope this gets answered. Also, can anyone also tell me what debounce is? Because this script is a free model, but I want to learn about it. Thanks.
Edit: Okay, I fixed it. Feel free to make any suggestions or possibly, tell me what in the world a debounce is.

1 comment
Thank you! Now I understand!