So I asked a question a few days ago about Teleporting other players to private servers and got an answer that seemed to work. When I was testing the script that made it so it teleports you to the same place as the player was currently in. It worked and then when I tried to make the script teleport you to a different place I got an error with the code 769. I don't know if its the game or the script so please help.
local TS = game:GetService("TeleportService")
local Players = game:GetService("Players")
local DSS = game:GetService("DataStoreService")
local DS = DSS:GetGlobalDataStore()
local ClickDetector = script.Parent
-- Get the saved code
local code = DS:GetAsync("ReservedServer")
if type(code) ~= "string" then -- None saved, create one
code = TS:ReserveServer(game.PlaceId)
DS:SetAsync("ReservedServer",code)
end
ClickDetector.MouseClick:Connect(function(plr)
TS:TeleportToPrivateServer(3926134089,code,{plr})
end)

6 comments
Whats the error
it just says teleport failed
It should be attached to your starter place in a single game
wat
Is this place: 3926134089 in a different game than the one you are teleporting from?
No