|
| 26 Jun 2016 10:21 PM |
What am I doing wrong? Something must be wrong.. Also can I make it so the wait times are random and 3 and under too? I am new to scripting and I am building a game called Forus and it is a post-apocalypse/ adventure game and in a hallway we need a flashing light. Also, anyone know how to make a brick glow besides using Neon?
repeat brick.material = "SmoothPlastic" wait(2) brick.material = "Neon" wait(1)
brick.material = "SmoothPlastic" wait(1) brick.material = "Neon" wait(3)
brick.material = "SmoothPlastic" wait(3) brick.material = "Neon" wait(2)
brick.material = "SmoothPlastic" wait(1) brick.material = "Neon" wait(2)
brick.material = "SmoothPlastic" wait(3) brick.material = "Neon" wait(3)
brick.material = "SmoothPlastic" wait(2) brick.material = "Neon" wait(1) |
|
|
| Report Abuse |
|
|
|
| 26 Jun 2016 10:24 PM |
You forgot until after repeat! -- I would just use while true do and put end at the end of the script.
~Mama
|
|
|
| Report Abuse |
|
|
Fangous
|
  |
| Joined: 03 Jul 2010 |
| Total Posts: 4448 |
|
|
| 26 Jun 2016 10:25 PM |
repeat brick.material = "SmoothPlastic" wait(math.random(2,3)) brick.material = "Neon" wait(math.random(1,2)) until nil |
|
|
| Report Abuse |
|
|
|
| 26 Jun 2016 10:51 PM |
It is still not working Fang. I have a point light in the Part. Is that affecting anything?
|
|
|
| Report Abuse |
|
|