Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

how do i make it where theres a gui that when you click it it teleports you to a different game?

Asked by 7 years ago

i made a gui that says new game and i want it to teleport you to a new game of mine and i dont know how ive looked a lot on youtube and forums and cant find anything plz help im new to scripting

1 answer

Log in to vote
0
Answered by 7 years ago

Really? REALLY? I've found lots of videos when i searched it up. Heres how you do it.

local Tp = game:GetService("TeleportService")
local GameId = 12345678 --Insert your game id here.
local PlayerToTelerport = nil --Insert player to teleport. The parent must in the Player service.

Tp:Teleport(GameId, PlayerToTelerport)

For a video, click here.

Ad

Answer this question