i’m making a global matchmaking system and have it to where it reserves a server and teleports to it, however it freezes at
local accesscode = tpservice:ReserveServer(140656137324884)
this is the section of the script
local function teleport()
print("yes")
messagingservice:PublishAsync("NextMatchUpdate", false)
-- False means match CLOSED, True means match OPEN
print("0")
local accesscode = tpservice:ReserveServer(140656137324884)
print("1")
messagingservice:PublishAsync("AddCode", accesscode)
print("2")
wait(3)
accesscode = nextmatch.accesscodes[1]
print("yes")
messagingservice:PublishAsync("TeleportRollCall", {nextmatch, accesscode})
table.remove(nextmatch, 1)
timesinceminreq = os.time() - minreqreached.Value
for i = 2, #nextmatch do
table.remove(nextmatch, 2)
end
messagingservice:PublishAsync("NextMatchUpdate", true)
end
this is what comes out:
i’ve looked as far as i can on the devhub and can’t find anything and don’t really know what do to. the script is a modulescript and this exact code worked until i transferred it into a new place, which caused the old AND new places to break.