#ReserveServer issue
19 messages · Page 1 of 1 (latest)
local function GetPrivateServerCode()
local generateCode = teleportService:ReserveServer(16265940602)
repeat wait() until generateCode ~= nil
print(generateCode)
return generateCode
end
firstly, you should be pcalling it. since it can fail.
and should work fine in the roblox player. It doesnt let you use reserveserver in studio
Yeah
test it in roblox player, and let me know if it works
It works in roblox even without the pcall but i will put in it just in case
you should use protected call (pcall). sometimes reserve server can fail
I'd a retry function if it fails, but the choice is up to you.
tbh idk if it is needed
but you could add it
yeah, dont. not needed. just add pcall
it is completely up to you. it can fail if there are too much servers reserved
in your place
Im using pcall now