local Players = game:GetService("Players") local TeleportService = game:GetService("TeleportService") local player = Players.LocalPlayer -- GUI local gui = Instance.new("ScreenGui") gui.Name = "GameTeleport" gui.ResetOnSpawn = false gui.Parent = player:WaitForChild("PlayerGui") local frame = Instance.new("Frame") frame.Size = UDim2.new(0, 300, 0, 160) frame.Position = UDim2.new(0.5, -150, 0.5, -80) frame.BackgroundColor3 = Color3.fromRGB(25, 25, 30) frame.Parent = gui local input = Instance.new("TextBox") input.Size = UDim2.new(0, 260, 0, 40) input.Position = UDim2.new(0, 20, 0, 20) input.PlaceholderText = "Enter Game ID (PlaceId)" input.Text = "" input.Parent = frame local button = Instance.new("TextButton") button.Size = UDim2.new(0, 260, 0, 40) button.Position = UDim2.new(0, 20, 0, 80) button.Text = "JOIN GAME" button.BackgroundColor3 = Color3.fromRGB(40, 130, 220) button.TextColor3 = Color3.new(1, 1, 1) button.Parent = frame button.MouseButton1Click:Connect(function() local gameId = tonumber(input.Text) if not gameId or gameId <= 0 or gameId % 1 ~= 0 then button.Text = "Invalid Game ID!" return end button.Text = "Teleporting..." local success, err = pcall(function() TeleportService:Teleport(gameId, player) end) if not success then button.Text = "Teleport failed!" warn(err) end end)