Thank you
Thank you
Put this in a script and its parent being a part:
--This works for players and humanoids
Part.Touched:connect(function(instance)
if instance.Parent:findFirstChild("Humanoid") then
instance.Parent.Humanoid.Health = 0
end
end)
Put this in a script and its parent being a part:
--This works for players and humanoids
local Part = script.Parent
Part.Touched:connect(function(instance)
if instance.Parent:findFirstChild("Humanoid") then
instance.Parent.Humanoid.Health = 0
end
end)