Hey guys :) I came up with an idea for a pretty nice Roblox game but im very new at roblox studio and scripting. Currently i’m trying to figure out how to teleport 10 players only. Imagine there’s a plate and it only starts to teleport if 10 player are standing on it. And it should not teleport if there are 9 or 11 players on it.
These 10 player should be teleported to a server where they can choose teams and play against the enemy teams. That means that if another group of 10 players gets teleported they should be teleported to another server.
I really hope yall understand what i mean :/
local place = 1234567 -- Your place id here for i,v in pairs(game.Players:GetPlayers()) do if i ~= 10 then local tp = game:GetService("TeleportService") tp:Teleport(place, v) end end