Hi guys,
I have 10 Spawns with each different team colours... but I don't know how to assign every player 1 team colour. So there should never be 2 guys in one team. Can you please help me.
Thank you!
Hi guys,
I have 10 Spawns with each different team colours... but I don't know how to assign every player 1 team colour. So there should never be 2 guys in one team. Can you please help me.
Thank you!
This discussion is preserved as it was. New answers, comments, and votes are closed.
2 comments
Attach a callback to the PlayerAdded signal of the Player's Service. Allocate the Teams Service and iterate through each Team Object, check the population number with #Team:GetPlayers() and match it to zero. With that, use the Player Object supplied in the parameter given by said PlayerAdded signal, and assign it's team to the respective team.
sorry but I don't really understand this because im relativly new to scripting in Lua/Roblox.