|
May anyone please pm me if you know how to make stoplights? |
|
|
It's pretty easy really,
I'm bored so I will make the script >_>
-----------------------
red = script.Parent.RedLight
amber = script.Parent.AmberLight
green = script.Parent.GreenLight
time = 5
------------------------
red.Transparency = 0.4
amber.Transparency = 0.4
green.Transparency = 0.4
while true do
wait()
red.Transparency = 0
wait(time)
red.Transparency = 0.4
amber.Transparency = 0
wait(2)
amber.Transparency = 0.4
green.Transparency = 0
wait(time)
end
It's very basic, really. |
|
pwnedu46Join Date: 2009-05-23 Post Count: 7534 |
I remember making one of these a _LONG_ time ago :D |
|
|
Yeah, I am so bored I even made a model of it and can be found here:
http://www.roblox.com/StopLight-item?id=48686521 |
|
|
For this script to work you need to make a model and inside must be three bricks (one named red one named yellow one named green)
and the script is in NOTHING but the model.
--Start of script
a = script.Parent
r = a.Red
y = a.Yellow
g = a.Green
while true do
r.Color = "Really Red"
y.Color = "Black"
g.Color = "Black"
wait(6) --Change to time the stoplight is red
r.Color = "Black"
y.Color = "Black"
g.Color = "Green"
wait(10) --Change to time the light is green
r.Color = "Black"
y.Color = "Yellow"
g.Color = "Black"
wait(3) --Now the yellow light cant take forever can it? |
|
|
@boyned,
Learn to script please. |
|
|
|
@boyned,
First off, 'Color' is not a property of part. There is no end statement for the while loop, and BrickColor3.new( expected near the color value.
|
|
|
Eh Im not good but I know SOME stuff |
|
|
|
LOL I made some a while ago... |
|
|
I don't get it, can someone send me a message with details like where to go and that? |
|
|
|
roblox never told me how to script!! |
|
|
|
@Tiny
Why did you bump this? |
|
|
i shoulda quit roblox a LONG time ago |
|