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!

2 comments

1

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.

0

sorry but I don't really understand this because im relativly new to scripting in Lua/Roblox.