So, I am trying to make a survival game. There are three teams, Red (eliminated) Orange (Alive) and Yellow (Eliminator). I am trying to make a script where one person from the alive team becomes an eliminator. I know how to make a random player chooser script, but I don't want anyone from the eliminated team to get chosen. I tried out a script but it doesn't work. Does anyone know whats wrong with this script? Thanks, taxicar24
local ChosenPlayer = game.Teams["Neon orange"]:GetPlayers()[math.random(1,#game.Teams["Neon orange"]:GetPlayers())]
ChosenPlayer.TeamColor = BrickColor.new("New Yeller")

6 comments
So I copied and tested that script, and it still did not work.
Can you share with me what shows up in the output so I can diagnose it better?
Im not very good with outputs, but it does say "Neon orange is not a valid member of Teams." Everything else has nothing to do with this script whatsoever.
Then thats because you gotta put the name of your team in between the brackets next to 'game.Teams[]' at the first line, not its color. So yeah, "Neon orange" shouldn't go there but rather the name of the team object. What is said team called?
OMG IT WORKS TYSM!!!!!!!!
No problem! Anytime :)