#I need help with TeleportService

1 messages · Page 1 of 1 (latest)

inland plume
#

So i use reserved server code based servers, it is passed correctly but on teleport it makes a new server instead. I really need help with this, sending script that handles this now

#
local TeleportService = game:GetService("TeleportService")
local ReplicatedStorage = game:GetService("ReplicatedStorage")

local teleportRequest = ReplicatedStorage:WaitForChild("TeleportRequest")
teleportRequest.OnServerEvent:Connect(function(player, reservedServerCode)
    local placeId = 110910872236270
    if reservedServerCode then
        print("Teleporting player " .. player.Name .. " to reserved server: " .. reservedServerCode)
        TeleportService:TeleportToPrivateServer(placeId, reservedServerCode, {player})
    else
        warn("No reservedServerCode found!")
    end
end)
#

please help me on this as i have been trying to fix this for multiple weeks

#

it wont let me send the code for my interpreter sadly

green sinew
#

¯_(ツ)_/¯

#

that wasnt used before

inland plume
#

and the function also shows it correctly

#

it is confirmed 3 times

#

one by the client grabbing it from the servers info file

#

one bu the interpreter that assembles the servers info file

#

and one by that connect script

icy cairn
#

what are you trying to achieve?