I'm trying to make a sword.
Blade = script.Parent.Saber2 damage = 10 Blade.Touched:connect(function(hit) hit.Parent:findFirstChild("Humanoid"):TakeDamage(damage) end)
Will the above code deal damage to another player when hit?
Thanks.
Blade = script.Parent.Saber2 damage = 10 Blade.Touched:connect(function(hit) local human = hit.Parent:FindFirstChild("Humanooid") if human then human:TakeDamage(damage) end end)