How to make a UI that teleports you in another game?

What I mean by:

  1. I want to make a button and if you click it, it teleports you into another game. Keep it simple and clear!

  2. Screenshots:

I would like a bit of help about how to do this!
Thanks.

https://developer.roblox.com/en-us/api-reference/class/TeleportService

Using the TeleportService

The code below will teleport a player to Crossroads, assuming it’s in a LocalScript.

game:GetService('TeleportService'):Teleport(1818)

Note that you can’t teleport to adopt me if adopt me’s third party teleport game setting is off.

1 Like

Never mind guys! I found something that helps me.