missyblue
|
  |
| Joined: 23 Oct 2009 |
| Total Posts: 372 |
|
|
| 10 May 2015 12:04 PM |
while true do wait(1) script.Parent.BrickColor = BrickColor.Random() end
if script.Parent.BrickColor.Number (1004) == true then wait(0.01) script.Parent.Transparency = 1 end
What is suppose to happen, is that when the color of the Part is "Really red", it will make the part's transparency 1. For some reason that's not working, can anyone point me in the right way? |
|
|
| Report Abuse |
|
|
|
| 10 May 2015 12:08 PM |
| 1 Transparency is really hard to notice. Bump it to 10 and you might see results. |
|
|
| Report Abuse |
|
|
missyblue
|
  |
| Joined: 23 Oct 2009 |
| Total Posts: 372 |
|
|
| 10 May 2015 12:16 PM |
| Prettyyyy sureee 1 is noticeable. 0.1 isn't but 1 issss |
|
|
| Report Abuse |
|
|
Parkderp1
|
  |
| Joined: 19 Jan 2014 |
| Total Posts: 139 |
|
|
| 10 May 2015 12:18 PM |
| put the if statement in the loop |
|
|
| Report Abuse |
|
|
missyblue
|
  |
| Joined: 23 Oct 2009 |
| Total Posts: 372 |
|
| |
|
|
| 10 May 2015 12:43 PM |
while wait(1) do script.Parent.BrickColor = BrickColor.Random() print(script.Parent.BrickColor) if script.Parent.BrickColor == BrickColor.new("Really red") then wait(.01) script.Parent.Transparency = 1 else script.Parent.Transparency = 0 end end
Lord of all things, breaded and unbreaded. |
|
|
| Report Abuse |
|
|
missyblue
|
  |
| Joined: 23 Oct 2009 |
| Total Posts: 372 |
|
| |
|