RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"if script.parent touched by a player kill the player"
-- script for killing a player when touched local part = script.Parent local function onTouch(otherPart) local character = otherPart.Parent local humanoid = character:FindFirstChildWhichIsA('Humanoid') if humanoid then humanoid.Health = 0 end end part.Touched:Connect(onTouch)