ReservedServers do not work with CharacterAutoLoads false

I was having issues with it on my game I am trying to update, and it just completely does not work.
I know This thread exists: ReservedServers not working occasionally

However, I have a solid repro, straight from the wiki, that does absolutely nothing.

It’s directly from this wiki page, except with a wait(), to give it time for the player to get in.
http://wiki.roblox.com/index.php?title=API:Class/TeleportService/ReserveServer

I tried it on this game https://www.roblox.com/games/292463422/Reserved-server-test (Personal place)
as well as this: https://www.roblox.com/games/366296593/Reserved-server-test (Group place), and neither of them worked.

It gets the code just fine, but teleporting part, just does not work at all.

Repro: (Put it in a server script, or even put it in the dev console)

local TS = game:GetService("TeleportService")
local Players = game:GetService("Players")
wait(10)
local code = TS:ReserveServer(game.PlaceId) 
local players = game.Players:GetChildren()
TS:TeleportToPrivateServer(game.PlaceId,code,players)

Do you get any output?

Also, are you sure that it’s not the case that the wait passed before any player has actually connected to the game? (the server may be running for 10 seconds before a player is connected) You say “or even put it in the dev console” but not if you actually tested it that way too.

No output whatsoever. I’ll screenshot it

This is all that shows, even after executing.

Edit:
So I changed the code to this:

local TS = game:GetService("TeleportService")
local Players = game:GetService("Players")
 
wait(10)
local code = TS:ReserveServer(game.PlaceId) 
local players = game.Players:GetChildren()
print("STARTING TELEPORT")
TS:TeleportToPrivateServer(game.PlaceId,code,players)
print("After calling teleport")

This was my output:

I tried it in a place of my own and it does actually create a server and teleport me, it does take 10 seconds in total. Exact same code as you mentioned.

I figured it out, it’s CharacterAutoLoads, that MUST be true in order for it to work apperently… like why…

1 Like

Yeah teleporting without a character will fail regardless.

@Locard mentioned something interesting in his post here:
http://devforum.roblox.com/t/do-universes-work/24323/3

Saying it would be changed, but he doesn’t mention a source and I can’t find it either.

I work here. My source is myself.

Oh, you should get the staff tag :stuck_out_tongue:

My internship ends in like 3 weeks or so. I don’t think it’s necessary to get it added right now. :stuck_out_tongue:

Teleports don’t work currently without a character. A quick workaround for this is to give the player a character, or leave CharacterAutoLoads to true.

This will be fixed in an upcoming release (this week or next week).

2 Likes

Was this fixed this week?

Still wondering… also the request for teleporting does not use HTTPS?

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.