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: So I'm making a fancy traffic light...

Previous Thread :: Next Thread 
Salinas23 is not online. Salinas23
Joined: 28 Dec 2008
Total Posts: 37142
02 Nov 2012 11:00 PM
while true do

Green = game.Workspace.TrafficLight.Green
Yellow = game.Workspace.TrafficLight.Yellow
Red = game.Workspace.TrafficLight.Red

Green.Reflectance = 0.5
Green.BrickColor = "Dark Green"
wait(8)

for i = 1, 5 do

Green.Reflectance = 0
Green.BrickColor = "Bright Green"
wait(0.5)
Green.Reflectance = 0.5
Green.BrickColor = "Dark Green"
end

Yellow.Reflectance = 0.5
wait(3)
Yellow.Reflectance = 0
Red.Reflectance = 0.5
Red.BrickColor = "Really Red"
wait(12)
Red.Reflectance = 0
Red.BrickColor = "Bright Red"

Green.Reflectance = 0.5
Green.BrickColor = "Dark Green"
end


I see no problem, but Output says another thing.

HELP D:!
Report Abuse
MrChubbs is not online. MrChubbs
Joined: 14 Oct 2010
Total Posts: 4969
02 Nov 2012 11:08 PM
while true do

local Green = workspace.TrafficLight.Green
local Yellow = workspace.TrafficLight.Yellow
local Red = workspace.TrafficLight.Red

Green.Reflectance = 0.5
Green.BrickColor = BrickColor.new("Dark green")
wait(8)

for i = 1, 5 do

Green.Reflectance = 0
Green.BrickColor = BrickColor.new("Bright green")
wait(0.5)
Green.Reflectance = 0.5
Green.BrickColor = BrickColor.new("Dark green")
end

Yellow.Reflectance = 0.5
wait(3)
Yellow.Reflectance = 0
Red.Reflectance = 0.5
Red.BrickColor = BrickColor.new("Really red")
wait(12)
Red.Reflectance = 0
Red.BrickColor = "Bright Red"

Green.Reflectance = 0.5
Green.BrickColor = BrickColor.new("Dark green")
end
end

And post what the output says, not just that it says something.
Report Abuse
MrChubbs is not online. MrChubbs
Joined: 14 Oct 2010
Total Posts: 4969
02 Nov 2012 11:09 PM
while true do

local Green = workspace.TrafficLight.Green
local Yellow = workspace.TrafficLight.Yellow
local Red = workspace.TrafficLight.Red

Green.Reflectance = 0.5
Green.BrickColor = BrickColor.new("Dark green")
wait(8)

for i = 1, 5 do

Green.Reflectance = 0
Green.BrickColor = BrickColor.new("Bright green")
wait(0.5)
Green.Reflectance = 0.5
Green.BrickColor = BrickColor.new("Dark green")
end

Yellow.Reflectance = 0.5
wait(3)
Yellow.Reflectance = 0
Red.Reflectance = 0.5
Red.BrickColor = BrickColor.new("Really red")
wait(12)
Red.Reflectance = 0
Red.BrickColor = BrickColor.new("Bright red") -- Missed this line.

Green.Reflectance = 0.5
Green.BrickColor = BrickColor.new("Dark green")
end
end
Report Abuse
Salinas23 is not online. Salinas23
Joined: 28 Dec 2008
Total Posts: 37142
02 Nov 2012 11:11 PM
K sorry I'm new in this script thingy.
Report Abuse
MrChubbs is not online. MrChubbs
Joined: 14 Oct 2010
Total Posts: 4969
02 Nov 2012 11:12 PM
Well the point of the output is to tell you what is wrong, it is assumed you know what is wrong when your script doesn't work, generally the output will pretty much tell you what you need to fix.
Report Abuse
Salinas23 is not online. Salinas23
Joined: 28 Dec 2008
Total Posts: 37142
02 Nov 2012 11:14 PM
Yeah about that...

Everytime I make a script (well most of the times) the Output says "Stack end"

WHAT DOES THAT MEANS?!
Report Abuse
MrChubbs is not online. MrChubbs
Joined: 14 Oct 2010
Total Posts: 4969
02 Nov 2012 11:16 PM
That I believe has nothing to do with the script errors(which appear in red) that particular message has to do with the Roblox program.
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