TeleportAsync not working

First, game:GetService(“Players”):GetPlayers() is better to use especially when helping someone with an error to fix. Second, I don’t want to teleport every players in the server, that’s why I seperate them in a table.

1 Like

Try doing this:
Third argument of TeleportAsync must be a TeleportOptions instance

local teleportOptions = Instance.new("TeleportOptions")
teleportOptions.ShouldReserveServer = true
teleportService:TeleportAsync(placeId, playersTable, teleportOptions)
1 Like

but then, TeleportService will make error 403 forbidden

How will it?

Character limit

this is seccond problem:

	local server = TeleportService:ReserveServer(placeId) -- here, something is wrong with this line even in plain script, because you'll get no acces 
	local options = Instance.new("TeleportOptions")
	options.ReservedServerAccessCode = server

image

1 Like

as i told

char limit

Have you tried not reserving the server?

1 Like

me yes, and reserved server is error, i have public game that is not restricted, but reserving server is http 403 forbidden, he too, but he have too

Can't reserve server because error 403 forbidden - #3 by UseCodeLolMatters this is my topic, we thinking about solving this…

Have you also tried testing it in game (Not studio), as you can’t reserver nor teleport to server inside of Roblox Studio?

1 Like

this don’t work in game , and in studio too, tested

Yes, I tried to test in game with my alt.

The problem has been solved. I’ve been using MemoryStoreService and it works well. What I had done wrong was in the placeid I was teleporting the players to. I thought I had to put the gameId but I had to put the placeid.

1 Like

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