Please don't make us spawn a character to use TeleportService

@TheGamer101 I’ve seen that you may be working on the TeleportService API. Is it possible to not force the player to have a character spawned in order to teleport?

I’m not sure exactly what the requirements are, but if I disable CharacterAutoLoads the player will never teleport.

I want this because in Demented Defense I have 100 player servers where people create lobbies. To spawn characters is just not-needed (it’s 100% GUI based) and causes a lot of stress. Spawning characters just before teleport adds to latency when starting matches, which I also don’t want.

If I remember correctly this is a bug left over from when you could call Teleport with a character instead of a player. I remember thinking about this a long time ago but I guess I didn’t fix it :confused:

I will definitely fix this.


Thank you!

It looks like this has already been fixed.

I tested the following code in a PlayerScript:

local teleportService = game:GetService("TeleportService")
teleportService:Teleport(1818, game.Players.LocalPlayer)

Can you check to make sure teleporting without a character works in your game?

That’s not quite what I meant to communicate.

set game.Players.CharacterAutoLoads to false then try the reserved server teleport. (AKA Player.Character = nil)

Yeah, that works.

game.Players.CharacterAutoLoads is false. I’m trying the following code on the server.


local TS = game:GetService("TeleportService")
local Players = game:GetService("Players")
local code = TS:ReserveServer(game.PlaceId)
local players = Players:GetPlayers()
TS:TeleportToPrivateServer(game.PlaceId, code, players)
1 Like

Oh wow, I just tested it on the same place file and it works, thanks!

For some reason at the time of the OP it wouldn’t teleport players.

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