I want players teleport same place not random please help

So how i make it like going teleport not random, but 1 by 1 like first 1 then 2 then 3 and ye!
Here is the script!

: ’ ```lua’
local s = script.Stat
t = 0
while true do
t = 10 --for intermission timer
repeat
t = t-1
s.Value = "Selecting random Map… "…t
wait(1) --time for Game starting
until t == 0
s.Value = “Game starting!”
wait(2)
local plrs = game.Players:GetChildren()
for i = 1,#plrs do
local num = math.random(1,1) - I NEED HELP FOR THIS ONE!
plrs[i].Character.Head.CFrame = CFrame.new(workspace.Teleports[“Part”…num].Position)
end
t=250 --time for seconds left me is 10 so like 10 seconds left
repeat
t = t-1
s.Value = "Next Round In… "…t
wait(1)
until t ==0
end

Can you put your code in lua like that so we can see better : ’ ```lua’ and close with 3 ‘`’ without lua

 your code

I can’t really understand what you need help for… Are you trying to find a random player and teleport him somewhere?

i dont understand, sorry can u explain again.

1 Like
local PossibleNumbers = {
     5,
     1
}

local ChosenNumber = PossibleNumbers[math.random(1, #PossibleNumbers)]

Try something like this.

1 Like

im trying to make all players to one map and then teleport to others not the same or others like first part1 then part2

1 Like
local s = script.Stat
t = 0
while true do
t = 10 --for intermission timer
repeat
t = t-1
s.Value = "Selecting random Map… "…t
wait(1) --time for Game starting
until t == 0
s.Value = “Game starting!”
wait(2)
local plrs = game.Players:GetChildren()
for i = 1,#plrs do
local num = math.random(1,1) - I NEED HELP FOR THIS ONE!
plrs[i].Character.Head.CFrame = CFrame.new(workspace.Teleports[“Part”…num].Position)
end
t=250 --time for seconds left me is 10 so like 10 seconds left
repeat
t = t-1
s.Value = "Next Round In… "…t
wait(1)
until t ==0
end

Do that for clarity
edit : it’s supposed to be incremented when you do that

1 Like

I tried to copyy and remake but it doesn’t work?

1 Like

Are those the only errors you’re facing?

The script doen’t have any errors i just need to change it!

So far what I understood, are you trying to teleport 1 by 1 all players in the game to a random part (part1 or part2) of a map?

I try again I am trying to teleport all playerst to same part and then when the 250 seconds has far then then to next part (part2) and then all players to (part3,4,5,6,7,8,9,9999…)

1 Like

like all players to same NOt random

Please help me guys i have struggling in thiz!