RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"Make a script that kills the player if they click the part"
-- local script local part = script.Parent local function killPlayer(otherPart) local player = game.Players:FindFirstChild(otherPart.Parent.Name) if player then player.Character.Humanoid.Health = 0 end end part.MouseClick:Connect(killPlayer)