of     1   

jjwood1600
#158973358Monday, March 30, 2015 7:29 PM GMT

Hi guys! I am trying to make a simple x2 team chance but this is not working...any ideas? Thanks :) id = 186964027 list = {} function AddPlayers2() for i,v in pairs (game.Players:GetChildren()) do table.insert(list,v) if game:GetService("GamePassService"):PlayerHasPass(v,id) then table.insert(list,v) end end num1 = math.random(1,#list) print(list[num1]) num1.TeamColor = BrickColor.Blue() --erroring but dont know why num2 = math.random(1,#list) num2.TeamColor = BrickColor.Blue() if num2.Name == num1.name then repeat num2 = math.random(1,#list) num2.TeamColor = BrickColor.Blue() until num2.name ~= num1.Name --how to put reamining non-picked players into another team? end end
jjwood1600
#158975961Monday, March 30, 2015 8:05 PM GMT

Bump! :(
jjwood1600
#159022096Tuesday, March 31, 2015 8:15 AM GMT

Anyone? ;(
chimmihc
#159023160Tuesday, March 31, 2015 9:26 AM GMT

"num1 = math.random(1,#list) print(list[num1]) num1.TeamColor = BrickColor.Blue()" Now, why would a number value have a property named "TeamColor"? I script -~ chimmihc
jjwood1600
#159048245Tuesday, March 31, 2015 7:39 PM GMT

but the table "list" that is getting it from, has players in it (all the players plus any extras with the gamepass)?

    of     1