Im trying to make a part that kill the other players when touched but not the player that used it. Here is the script but its not working.
card.Touched:Connect(function(hit)
if not debounce then
if hit and hit.Parent then
print(hit.Parent.Name)
if not hit.Parent.Name == player.Character.Name then
local hum = hit.Parent:FindFirstChild('Humanoid')
if hum then
hum:TakeDamage(2)
debounce = true
end
end
end
end
end)

2 comments
Thanks
If you find an answer helpful you should accept it as the answer so people know that your problem has been solved