generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: NumPlayers

Previous Thread :: Next Thread 
Accomplishable is not online. Accomplishable
Joined: 13 Aug 2009
Total Posts: 6207
12 May 2014 06:37 PM
In the output, it says "Eliminated is not a valid member of Team"

t = Game.Teams:GetChildren()
for i = 1, #t do
if t[i].Eliminated.NumPlayers > 4 then -- Problem is here
Report Abuse
SenseiWarrior is online. SenseiWarrior
Joined: 09 Apr 2011
Total Posts: 12140
12 May 2014 06:39 PM
Eliminated isnt a child of Team, probably a misspell or its not there.
Report Abuse
Accomplishable is not online. Accomplishable
Joined: 13 Aug 2009
Total Posts: 6207
12 May 2014 06:39 PM
Not a mispell or anything. It's in the teams, too. Is it going only by ClassName?
Report Abuse
IAmTheRolo is online. IAmTheRolo
Joined: 12 Nov 2013
Total Posts: 859
12 May 2014 06:41 PM
NumPlayers is a property of Players. What exactly are you trying to pull off?
Report Abuse
Accomplishable is not online. Accomplishable
Joined: 13 Aug 2009
Total Posts: 6207
12 May 2014 06:46 PM
I'm trying to start a GUI countdown script based on the number of players on a team.
Report Abuse
COOLDUDE11OO is not online. COOLDUDE11OO
Joined: 21 Aug 2011
Total Posts: 5115
12 May 2014 06:46 PM
How many people are on a team.

eliminated = {}

for i,v in pairs(game.Players:GetChildren()) do
if v.TeamColor == game:GetService("Teams").Eliminated.TeamColor then
table.insert(eliminated,v.Name)
end
end

print(#eliminated)
Report Abuse
SenseiWarrior is online. SenseiWarrior
Joined: 09 Apr 2011
Total Posts: 12140
12 May 2014 06:48 PM
t = Game.Teams:GetChildren()
for i = 1, #t do
if i.Name == "Eliminated" then
if i:GetChildren() > 4 then

end
end
end
Report Abuse
Accomplishable is not online. Accomplishable
Joined: 13 Aug 2009
Total Posts: 6207
12 May 2014 06:49 PM
Lol nvm. I'l' just changed the team's score based on when a player joins.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image