I want this script not to dmg my local player! (not localscript)
script.Parent.Touched:Connect(function(hit)
local hum = hit.Parent:FindFirstChild("Humanoid')
if hum and not game.Players.LocalPlayer then
hum:TakeDamage(10)
else
print("This is local player")
end
end)
-- It still damages local player, whats wrong?

2 comments
is this in a local script?
no