So, im making a game where each player has a castle and i wanted to make the castle picking automatic. And to do so (i think that) i have to know when a team has player on. So, how do i check if a team as any players? Btw here's the script:
local player = game.Players.LocalPlayer
local redTeam = game.Team.redCastle
local blueTeam = game.Team.blueCastle
local greenTeam = game.Team.greenCastle
local yellowTeam = game.Team.yellowCastle
if -- this is where i think it is going to check the teams (here it checks if all teams are empty -- then
--btw i dont know how to change a player teams eitheir, sorry im nub --
elseif -- teamCheck -- then
-- Change team --
elseif -- teamCheck -- then
-- Change team --
elseif -- teamCheck -- then
-- Change team --
end
Thx for reading this. :3

2 comments
Use a loop
Btw send an answer not a comment