Rastko001
|
  |
| Joined: 02 Jun 2010 |
| Total Posts: 124 |
|
|
| 15 Oct 2013 09:55 AM |
| I'm trying to make a working light bar for one of my fire trucks but I don't really know how to script it to work properly. I want to make it look like the one in Robloxity (With dynamic lightning and that light decal-which I'm having trouble finding). Any suggestions? |
|
|
| Report Abuse |
|
chaokid9
|
  |
| Joined: 29 Aug 2008 |
| Total Posts: 6187 |
|
|
| 15 Oct 2013 10:02 AM |
Ok try this, make two bricks, one red and one blue. Name the red one exactly "RedBrick" and the blue one exactly"BlueBrick" (Without the quotes.) In each of the bricks put in a "Pointlight" object and adjust its color and brightness to what you want. Now group them together and name the group whatever you want and put a script in the group (Not in a brick, just in a group). In the script put this:
while wait(0.3) do script.Parent.RedBrick.Light.Enabled = true script.Parent.BlueBrick.Light.Enabled = false wait(0.3) script.Parent.RedBrick.Light.Enabled = false script.Parent.BlueBrick.Light.Enabled = true end |
|
|
| Report Abuse |
|
Rastko001
|
  |
| Joined: 02 Jun 2010 |
| Total Posts: 124 |
|
| |