Supah
|
  |
| Joined: 16 Aug 2008 |
| Total Posts: 921 |
|
|
| 14 Dec 2012 05:03 PM |
say do This
Path.BrickColor = BrickColor.Random() for 20 seconds. Would this be for(20) do or what? |
|
|
| Report Abuse |
|
|
|
| 14 Dec 2012 05:05 PM |
wait(20) or: delay(function,20() something end)
For hippies: http://www.roblox.com/Peace-Shirt-TRANSPARENT-item?id=99429853 |
|
|
| Report Abuse |
|
|
Supah
|
  |
| Joined: 16 Aug 2008 |
| Total Posts: 921 |
|
|
| 14 Dec 2012 05:06 PM |
| wait(20) would wait 20 seconds BEFORE doing this, but I want it to make the BrickColor change randomly for 20 seconds. |
|
|
| Report Abuse |
|
|
|
| 14 Dec 2012 05:09 PM |
brick = script.Parent -- Change to Brick
while wait(20) do brick.BrickColor = BrickColor.Random() end
~ṡсɾïρτïṉģ hεlρεɾṡ ۩ lυαlεαɾṉεɾṡ ④ øƒвќṃṿј~ ღ ▂▃▅▆█ρεώḋïερïε☄сυτïερïε█▆▅▃▂ღ 【▬】 |
|
|
| Report Abuse |
|
|
jelly134
|
  |
| Joined: 25 Aug 2008 |
| Total Posts: 1137 |
|
|
| 14 Dec 2012 05:12 PM |
for i=1, 20 do Path.BrickColor = BrickColor.Random() wait(1) end
|
|
|
| Report Abuse |
|
|
1Topcop
|
  |
| Joined: 09 Jun 2009 |
| Total Posts: 6635 |
|
|
| 14 Dec 2012 05:13 PM |
No no Jon, he want's to make the brick change color for 20 seconds, not after 20 seconds. You need a for loop,
for n=1,20,1 do brick.BrickColor = BrickColor.Random() wait(1) end |
|
|
| Report Abuse |
|
|
Supah
|
  |
| Joined: 16 Aug 2008 |
| Total Posts: 921 |
|
|
| 14 Dec 2012 05:14 PM |
Okay, here's something that should explain better. I'm working on a "Disco" part for my house script. elseif string.lower(msg) == "disco" then while wait(2) do Wall1.BrickColor = BrickColor.Random() Wall2.BrickColor = BrickColor.Random() Wall3.BrickColor = BrickColor.Random() Wall4.BrickColor = BrickColor.Random() Wall5.BrickColor = BrickColor.Random() Roofzz.BrickColor = BrickColor.Random() Floor.BrickColor = BrickColor.Random() Path.BrickColor = BrickColor.Random() end When I say disco, it needs to change colors every 2 seconds for a total of 20 seconds, then stop changing brick colors. What would do this? |
|
|
| Report Abuse |
|
|
jelly134
|
  |
| Joined: 25 Aug 2008 |
| Total Posts: 1137 |
|
|
| 14 Dec 2012 05:16 PM |
elseif string.lower(msg) == "disco" then for i=1,20,2 do Wall1.BrickColor = BrickColor.Random() Wall2.BrickColor = BrickColor.Random() Wall3.BrickColor = BrickColor.Random() Wall4.BrickColor = BrickColor.Random() Wall5.BrickColor = BrickColor.Random() Roofzz.BrickColor = BrickColor.Random() Floor.BrickColor = BrickColor.Random() Path.BrickColor = BrickColor.Random() wait(2) end end |
|
|
| Report Abuse |
|
|
Supah
|
  |
| Joined: 16 Aug 2008 |
| Total Posts: 921 |
|
|
| 14 Dec 2012 05:16 PM |
Nevermind, I see the fix now. Thank you all!
~What's green and has wheels? Grass, I've lied about the wheels.~ |
|
|
| Report Abuse |
|
|