RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"create a code when the player touched a part will die and add comment to code"
-- server script local part = script.Parent local function onTouch(otherPart) local player = game.Players:FindFirstChild(otherPart.Parent.Name) if player then player.Character:BreakJoints() -- player will die when touched the part end end part.Touched:Connect(onTouch)