|
| 31 Dec 2016 04:43 PM |
How do you change the color of a part named 'LOL' ?
|
|
|
| Report Abuse |
|
|
|
| 31 Dec 2016 04:49 PM |
workspace.Lol.BrickColor = BrickColor.new("Really Red")
http://wiki.roblox.com |
|
|
| Report Abuse |
|
|
| |
|
|
| 31 Dec 2016 04:59 PM |
I know this isn't needed, but if you want the brick colour to change to a random one every 10 seconds, do this:
while wait(10) do workspace.Lol.BrickColor = BrickColor.random() end
This can be simplified to:
while wait(10) do workspace.Lol.BrickColor = BrickColor.random() end
http://wiki.roblox.com |
|
|
| Report Abuse |
|
|
|
| 31 Dec 2016 05:10 PM |
| I'd use while true do not while do |
|
|
| Report Abuse |
|
|
|
| 31 Dec 2016 05:11 PM |
while true do wait(time)
instead of
while wait(time) do
Idk guess it's just preference. |
|
|
| Report Abuse |
|
|
Kasumo
|
  |
| Joined: 22 Mar 2013 |
| Total Posts: 2467 |
|
|
| 31 Dec 2016 05:33 PM |
@Hayden
while wait() do is for optimization, your method is not the "better" way to do it |
|
|
| Report Abuse |
|
|
| |
|
|
| 01 Jan 2017 12:59 PM |
^ If a wait statement is the first line for your while loop, you can save a line by just replacing true with the wait.
But of course, it's up to personal preference.
http://wiki.roblox.com |
|
|
| Report Abuse |
|
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 01 Jan 2017 01:04 PM |
both ways are fine.
however if you want the actin to end IMMEDIATELY is a condition is true and dont want to wait that 0.03333333 seconds then you can do it the latter way
while someval do --code wait() end
|
|
|
| Report Abuse |
|
|