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)