roblox kill part
local part = script.Parent -- Find the part
part.Touched:Connect(function(hit) -- Connect the Touched function with the part, the hit is whatever touches the part
if hit.Parent:FindFirstChild("Humanoid") then -- Only activate if hit is a Character
hit.Parent:FindFirstChild("Humanoid").Health = 0
end
end)