I'm trying to make a script where at the beginning, after the Intermission, everybody get's sorted into the Team "Criminal". Then after, it will choose 6 players to be in the "Police" team. It's working fine, except it's skipping the part where everybody's sorted into Criminals! The current script is:

local s = script.Status

while true do
	t = 60
	repeat
		t = t-1
		s.Value = "Intermission: "..t
		wait(1)
	until t == 0
	s.Value = "A new round will now begin!"
	local plrs = game.Players:GetPlayers()
	plrs.TeamColor = BrickColor.new("Really red")
	wait(3)
	local randomPlayer = game.Players:GetPlayers()[math.random(1,#game.Players:GetPlayers())]
    randomPlayer.TeamColor = BrickColor.new("Electric blue")
	s.Value = "The first Police will be: "..randomPlayer
	wait(3)
	local randomPlayer = game.Players:GetPlayers()[math.random(1,#game.Players:GetPlayers())]
    randomPlayer.TeamColor = BrickColor.new("Electric blue")
	s.Value = "The second Police will be: "..randomPlayer
	wait(3)
	local randomPlayer = game.Players:GetPlayers()[math.random(1,#game.Players:GetPlayers())]
    randomPlayer.TeamColor = BrickColor.new("Electric blue")
	s.Value = "The third Police will be: "..randomPlayer
	wait(3)
	local randomPlayer = game.Players:GetPlayers()[math.random(1,#game.Players:GetPlayers())]
    randomPlayer.TeamColor = BrickColor.new("Electric blue")
	s.Value = "The fourth Police will be: "..randomPlayer
	wait(3)
	local randomPlayer = game.Players:GetPlayers()[math.random(1,#game.Players:GetPlayers())]
    randomPlayer.TeamColor = BrickColor.new("Electric blue")
	s.Value = "The fith and final Police will be: "..randomPlayer
end

How do I fix this up?

1 comment

0

I know this wont fix things, but you might wanna make sure the same person hasn't been selected twice, unless your adding that on after you finish the script.