How do you make a textbutton that teleports you to another game

Put your script in replies please.

You aren’t supposed to ask for full scripts here for future reference.

You can use TeleportService to achieve this.

local teleportService = game:GetService('TeleportService')
local button = script.Parent -- Location of the button
local placeId = 123456789 -- Destination place

    teleportService:Teleport(placeId, game:GetService('Players').LocalPlayer