Public Reserved Server?

I’m currently working on a game where players are teleported to another place when certain events are triggered, such as when they interact with a ProximityPrompt or touch a specific part. I’m using TeleportService:Teleport to handle the teleportation, but I’ve run into an issue where players are getting split up into different servers.

My goal is to ensure that players who trigger the event in the same server are teleported into the same server. However, I want this to happen only when the event is triggered, meaning TeleportPartyAsync won’t work for my use case, as it requires pre-selecting a group of players.

I don’t want to use ReserveServer() because other people should still be able to join them. The maximum player count is quite high, so it shouldn’t fill up any time soon.

2 Likes

Bump
Need help with this issue

1 Like

You can generate a ReservedServerAccessCode which can tp players to a specific reserved server. Before you say “Public reserved”, the access code does allow people to tp to a reserved server. In your case here, when the game loads, you can have a TP options that holds the code to tp the player to

local TPS = game:GetService(“TeleportService”)
local placeid = — Your place ID here
local prompt = script.Parent
local TPOP = Instance.new(“TeleportOptions”)
TPOP.ReservedServerAccessCode = TPS:ReserveServer(placeid)

prompt.Triggered:Connect(function(plr)
   TPS:TeleportAsync(placeid,{plr},TPOP)
end)

This is a server script inside the prox prompt