If you have a different problem, you can open your own topic before mixing up everything , thank you.
xd, i don’t know this is about teleport async, let’s fix two problems at once, because you reserving server too
instead of writing place id can we just write a code like this?
local placeId = 4972532928
TeleportService:TeleportAsync(placeId, game.Players:GetChildren(), Enum.TeleportType.ToReservedServer)
oh yeah i totally forget about that
but then we get error about object cannot cast to value, because enum is value and you need teleport options that is instance.new()
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.
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)
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
as i told
char limit
Have you tried not reserving the server?
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?
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.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.