I need a script so that I can make it so that 1 person is chosen to get a gun, 1 person is chosen to get a item also, and the other people get nothing. Sort of like the script used in Murder Mystery and TMM.
COMMUNITY QUESTION
How can I make it so there is only 1 person to be on one team, then the others be on another?
1 answer
function Choose()
Players = game.Players:children()
Luck = math.random(1,#Players)
Player = Players[Luck]
for i,v in pairs(Players) do
if v ~= Player then
v.TeamColor = BrickColor.new("Team That Everyone Is On.")
else
v.TeamColor = BrickColor.new("Team With One Person.")
end
end
end
--and then, When you want it to choose....
Choose()
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
Then, You make them all Reset, and you can make Team tools, and do what you want from there.
Its not working I have team tools but Im not sure how to make them reset. Also the choose() do you insert the time in there because if you do it dosnt work.