|
| 25 Sep 2014 08:33 PM |
This is what I have so far. I'm a complete noob, so don't go too hard on me please.
local light = script.Parent local v = script.Parent.Parent.Parent.Screen.Screen.a.Script.V.Value
while true do if v ~= 0 then light.BrickColor = "Institutional white" else light.BrickColor = "Really black" end end
_________________________________________________________________________________________
My local "v" refers to the speed value in my speedometer, which works completely fine.
When it's Really black the car isn't moving (v = 0) and when it's white, the car is moving (v ~= 0) |
|
|
| Report Abuse |
|
|
| |
|
Rapster2
|
  |
| Joined: 16 Oct 2009 |
| Total Posts: 1865 |
|
|
| 25 Sep 2014 08:41 PM |
local light = script.Parent local v = script.Parent.Parent.Parent.Screen.Screen.a.Script.V.Value
while wait() do if v ~= 0 then light.BrickColor = BrickColor.new("Institutional white") else light.BrickColor = BrickColor.new("Really black") end end
If it weren't for attorneys, we wouldn't need attorneys. |
|
|
| Report Abuse |
|
|
|
| 25 Sep 2014 08:49 PM |
I didn't know about "BrickColor.new" and "while wait() do" up until now. Thanks.
But I can't believe I forgot those darn parentheses around the "" again... |
|
|
| Report Abuse |
|
|
|
| 25 Sep 2014 08:51 PM |
| Wait a sec, it doesn't turn back to white when it starts going again. |
|
|
| Report Abuse |
|
|