Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

I have a bus, and I want to create a new server and send the people on the bus to that server?

Asked by 5 years ago
Edited 5 years ago
local GameID = 348592 -- Example Number
for i, v in pairs(workspace.Bus.Players:GetChildren()) do
    game:GetService("TeleportService"):Teleport(GameID, game.Players:FindFirstChild(v.Name))
end
0
https://developer.roblox.com/en-us/api-reference/function/TeleportService/TeleportPartyAsync. You may want to read up on this as it is extremely useful in scenarios like yours. It allows you to teleport a group of players to the same server of the same game, similar to how a party of players is sent together in battle royale games (for example Fortnite or PUBG.) lunatic5 409 — 5y
0
@lunatic5 I tried reading up on it already, but I just don't understand it. ChillTart 4 — 5y

Answer this question