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
 

Help me...

Previous Thread :: Next Thread 
Jimblack is not online. Jimblack
Joined: 19 Feb 2011
Total Posts: 1179
27 Jul 2011 07:24 PM
Im trying to figure out how to make a traffic light. I think I got some down but is there a way to continue on to make is synced? It would be to hard to sync it manually...

Green light:
while true do -- create a loop
script.Parent.BrickColor = BrickColor.Bright Green()-- make the brick a random color
wait(10) -- change the number to the amount of seconds you want it to stay each color
end -- end the loop

Yellow Light:
while true do -- create a loop
script.Parent.BrickColor = BrickColor.Bright Yellow()-- make the brick a random color
wait(4) -- change the number to the amount of seconds you want it to stay each color
end -- end the loop

Red Light:
while true do -- create a loop
script.Parent.BrickColor = BrickColor.random()-- make the brick a random color
wait(14) -- change the number to the amount of seconds you want it to stay each color
end -- end the loop

So help me if you can.
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