of     1   

Slendeath
#227638038Friday, November 17, 2017 5:10 PM GMT

Im wondering how to make a script that tests for 2 or more players on a team, and if there is then do something? i would be grateful if someone could tell me. thanks
WillieTehWierdo200
#227638188Friday, November 17, 2017 5:17 PM GMT

local myTeam = game:GetService("Teams").MyTeam if #myTeam:GetPlayers() < 2 then print("Team "..myTeam.Name.." has less than 2 players in it") end
Cyrakohl
#227638210Friday, November 17, 2017 5:18 PM GMT

local TeamS = game:GetService("Teams") local Team = TeamS.RedTeam local PlayerCount = #Team:GetPlayers() if PlayerCount >= 2 then -- stuff end
Slendeath
#227643176Friday, November 17, 2017 8:40 PM GMT

i'm not sure if the local script goes in to the Teams folder or the Starter Player folder and if it needs "while true do" at the begining

    of     1