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
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
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…)