I started with a script I found on the roblox website on the page for TeleportService:TeleportToPrivateServer, and changed it to my ids. Sorry if this is a basic, mistake, I am new to scripting. The code should teleport the player to a separate game, but it does nothing.
local TS = game:GetService("TeleportService")
local Players = game:GetService("Players")
local code = TS:ReserveServer(4456038439) -- Returns a code
local players = Players:GetPlayers() -- Get a list of all players
TS:TeleportToPrivateServer(4456038439,code,players) -- Actually teleport the players

2 comments
Thanks, modified it a bit to use TeleportService:TeleportToPrivateServer and discovered that to do that the other game requires to be a place in the game that you were teleported from; thanks for the code by the way, easy to modify off of.
np