RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"if the player touches a part called blu5, then they die"
-- script for the part called blu5 local part = script.Parent local function onTouched(otherPart) local player = game.Players:FindFirstChild(otherPart.Parent.Name) if player then local humanoid = player.Character:FindFirstChildWhichIsA('Humanoid') if humanoid then humanoid.Health = 0 end end end part.Touched:Connect(onTouched)