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: I need a script that...

Previous Thread :: Next Thread 
Whipitz is not online. Whipitz
Joined: 10 Oct 2008
Total Posts: 1364
10 Mar 2014 04:52 PM
(loops) it waits until there is less than 2 people in the server, then it changes the remaining person's team to Lime Green. help please?

while true do
if game.NumPlayers < 2 then
xyz
Report Abuse
skyboundShovel is not online. skyboundShovel
Joined: 28 Feb 2014
Total Posts: 232
10 Mar 2014 04:53 PM
Players = game.Players:GetChildren()

repeat wait() until #Players >= 2
Report Abuse
Whipitz is not online. Whipitz
Joined: 10 Oct 2008
Total Posts: 1364
10 Mar 2014 04:56 PM
=/ bump
Report Abuse
Whipitz is not online. Whipitz
Joined: 10 Oct 2008
Total Posts: 1364
10 Mar 2014 05:21 PM
help please
Report Abuse
secretidagent is online. secretidagent
Joined: 07 Nov 2010
Total Posts: 1600
10 Mar 2014 05:45 PM
http://wiki.roblox.com/index.php?title=Repeat#The_.27repeat.27_Statement
--
http://wiki.roblox.com/index.php?title=RBX.lua.Players_(Object)
---http://wiki.roblox.com/index.php?title=NumPlayers_(Property)
http://wiki.roblox.com/index.php?title=Generic_for#Standard_Library_Iterators
------

Code:

repeat wait() until game.Players.NumPlayers < 2
players = game.Players:GetPlayers()
for i=1, #players do
players[i].TeamColor = BrickColor.new("Lime green")
end
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