|
| 03 Oct 2011 08:24 PM |
*This is a TextLabel in a ScreenGUI in my PlayerGui
*The script is enabled
*The output shows no response
*I expected a white square to fade in and out for a Loading GUI I made
Trans = script.Parent.BackgroundTransparency Fading = true while wait() do if Fading == "true" then for i = 1,0, -0.01 do wait(0.1) Trans = i end Fading = false else for i = 0,1, 0.01 do wait(0.1) Trans = i end Fading = "true" end end
|
|
|
| Report Abuse |
|
|
aboy5643a
|
  |
| Joined: 20 Nov 2010 |
| Total Posts: 2785 |
|
|
| 03 Oct 2011 08:25 PM |
Bool values don't have string values :P
Consider this line instead:
if Fading then --Stuff end
Fading = true
No parentheses..
"I like dooly-bops" -- ArceusInator |
|
|
| Report Abuse |
|
|
|
| 03 Oct 2011 08:30 PM |
| I just tried both of those, didn't work :| |
|
|
| Report Abuse |
|
|
aboy5643a
|
  |
| Joined: 20 Nov 2010 |
| Total Posts: 2785 |
|
|
| 03 Oct 2011 08:32 PM |
Remove fading altogether. Since it's procedural construction in the code, just tell it to do the for loop negative, then positive. Also consider not using properties as variables. Not sure if that affects it.
"I like dooly-bops" -- ArceusInator |
|
|
| Report Abuse |
|
|
|
| 03 Oct 2011 08:37 PM |
| Yes, it works now! Thank you. |
|
|
| Report Abuse |
|
|