|
Ok so I am trying to make a script that is a stop light but this is all I have:
while true do
light one(then ???)
light two(then???)
light three(then???)
but this is just a part of it. I want it to change colors but I dont know how to. Would it be like:
light one=green
light two=black
light three=black
or what? |
|
|
|
ugh you could just 'help' as this is 'scripting helpers' |
|
|
That is 'help'. Learn to script before you come onto this forum. |
|
SpectrumwJoin Date: 2009-08-04 Post Count: 13510 |
'Helping' you involves a whole new script. |
|
|
I know how to script, if you want proof go to my place, I just never learned how to scirpt colors |
|
|
plus that was just a part of the script |
|
|
Orly, this is pretty darn basic. |
|
ZarciusJoin Date: 2007-12-08 Post Count: 3024 |
Well... You need a stop light.
Then you need the three bulbs.
So it looks like this
workspace
..StopLight --MODEL
....Light1
....Light2
....Light3
....Script
and you'd do something like this.
while true do --Creates a loop.
script.Parent.Light1.Color = BrickColor.new("Green")--Dunno if this is a real color.
wait(10)--Sets a wait for the loop. Change the number in parentheses for different times
script.Parent.Light1.Color = BrickColor.new("Black")
script.Parent.Light2.Color = BrickColor.new("New Yeller")
wait(10)
script.Parent.Light2.Color = BrickColor.new("Black")
script.Parent.Light3.Color = BrickColor.new("Really red")
end --Ends the loop. |
|
ZarciusJoin Date: 2007-12-08 Post Count: 3024 |
Oops.
Use this one instead.
while true do --Creates a loop.
script.Parent.Light1.Color = BrickColor.new("Green")--Dunno if this is a real color.
wait(10)--Sets a wait for the loop. Change the number in parentheses for different times
script.Parent.Light1.Color = BrickColor.new("Black")
script.Parent.Light2.Color = BrickColor.new("New Yeller")
wait(10)
script.Parent.Light2.Color = BrickColor.new("Black")
script.Parent.Light3.Color = BrickColor.new("Really red")
wait(10)
script.Parent.Light3.Color = BrickColor.new("Black")
end |
|
myrco919Join Date: 2009-06-12 Post Count: 13241 |
[ Content Deleted ] |
|
|
thanks guys, i new the script except didnt know how to change the colors |
|
|
@Mycro
Three actually. :D |
|
|
*uses bomb to light the fuse of BBE's bomb*
bai :D
*BBE's bomb asplodes in his hand*
...
*if he had hands* |
|