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

button.MouseButton1Click:Connect(function()
    teleportService:Teleport(placeId, game:GetService('Players').LocalPlayer
end)