ReserveServer & TeleportToPrivateServers are both functions that are not recommended to be used anymore. ROBLOX has released a more recent multi-use function in TeleportService called TeleportAsync (DevWiki) which should be used instead.
Here is a revised version of your code which uses it and should work. Note that I would not recommend using a while loop as it will constantly just teleport them. Put it in a function and call it when you need it.
local TeleportService = game:GetService("TeleportService")
local Players = game:GetService("Players")
while true do
print("Running")
wait()
local teleportOptions = Instance.new("TeleportOptions")
teleportOptions.ShouldReserveServer = true
local players = Players:GetPlayers()
if #players >= 1 then
local teleportResult = TeleportService:TeleportAsync(game.PlaceId, players , teleportOptions);
end
end
1 comment
Weirdly it still doesn't work! Below is what I did