← Back to Boxing Scripts

Play Again Script

Customize your variables, then fill in the blanks!

Your Custom Settings

TextButton name in your GUI
ScreenGui containing the button

LocalScript (inside the Play Again button)

This script teleports the player back to the same game when they click the Play Again button. The button should be inside your win or lose ScreenGui!

local TeleportService = game:("TeleportService")
local Players = game:GetService("")
local player = Players.
local button = script.
button.:Connect(function()
    local placeId = game.
    TeleportService:(placeId, player)
end)