Teleporting to different server or game?

You have games (experiences) and places. You join a game and then you want to teleport to a place. There’s a script for this. I used this script, but here I made it with ProximityPrompt:

local TeleportService = game:GetService("TeleportService")
local ProxPrompt = script.Parent
local gameID = 12345678910 -- place ID

ProxPrompt.Triggered:Connect(function(plr)
	TeleportService:Teleport(gameID, plr)
end)