My Script
script.Parent.Touched:Connect(function(hit)
local char = hit.Parent
local hum = char:FindFirstChild("Humanoid")
if hum and char.Name ~= script.Parent.Parent.Name then
hum.Health = hum.Health - script.Dmg.Value
script.Disabled = true
wait(.5)
script.Disabled = false
end
end)
The error
19:52:19.815 - LocalizationService.RobloxLocaleId overridden to "en-us" (x2)
19:52:21.443 - Touched is not a valid member of Script ---- this the error
19:52:21.444 - Stack Begin
19:52:21.445 - Script 'ServerScriptService.Punch.DmgScript', Line 1
19:52:21.445 - Stack End

1 comment
ok thx i under stand