`local plrcount = 0
local Teleport = game.GetService(“TeleportService”)'=
local TeleportData = { 1+1 = 2}
for i,v in pairs(game.Players:GetChildren()) do
if v:IsA(“Player”) then
plrcount = plrcount+1
end
end
if plrcount == 8 then
I will stop there because almost all of the tutorials I have seen would be when a pleyer would touch a part but for me I would want to teleport them when there are 8 of them. How would I do that
Just use TeleportPartyAsync. And getting the list of all the players is easy.
local Players = game:GetService("Players")
local playerlist = Players:GetPlayers()
--and then whenever you use TeleportPartyAsync, just do :TeleportPartyAsync(placeid, playerlist, and then anything else.)
Come on, there’s got to be plenty of tutorials out there about it. Here’s one: