robocu3
|
  |
| Joined: 13 Mar 2009 |
| Total Posts: 6485 |
|
|
| 21 Feb 2014 10:36 PM |
l = script.Parent Content = script.Parent.Content Content2 = script.Parent.Content2 cover = script.Parent.cover while true do wait(1) while true do --While loop will make fade run forever for i=1, 10 do --First loop to make it increase transparency cover.BackgroundTransparency=i/10 --Since this is counting from 1 to 10, we need to divide by 10 so 1 would be .1, 2 would be .2, etc wait(0.08) end wait(5) for i=10, 1, -1 do cover.BackgroundTransparency=i/10 wait(0.08) end end end ------------ script works just fine and is for now just an experiment, except, the first time the player enters it says cover is not a valid member of screengui. Works fine after I disable and re enable the script. Any help? -=Robo=-
|
|
|
| Report Abuse |
|
|
robocu3
|
  |
| Joined: 13 Mar 2009 |
| Total Posts: 6485 |
|
|
| 21 Feb 2014 10:37 PM |
and whoops, i have two while true do's in there lol -=Robo=- |
|
|
| Report Abuse |
|
|
robocu3
|
  |
| Joined: 13 Mar 2009 |
| Total Posts: 6485 |
|
| |
|
|
| 22 Feb 2014 12:38 AM |
| What's the parent of this script? |
|
|
| Report Abuse |
|
|
|
| 22 Feb 2014 12:39 AM |
| I'm guessing that either cover is spelled wrong in the script or in the actual gui. Another guess is that cover is not in script.Parent, maybe script.Parent.Content? |
|
|
| Report Abuse |
|
|
robocu3
|
  |
| Joined: 13 Mar 2009 |
| Total Posts: 6485 |
|
|
| 22 Feb 2014 11:01 AM |
No, cover was in the Gui. It worked fine after I disabled and enabled it, just not the first time. -=Robo=- |
|
|
| Report Abuse |
|
|
|
| 22 Feb 2014 11:37 AM |
| Disabling and enabling a script doesn't not affect the script... |
|
|
| Report Abuse |
|
|
robocu3
|
  |
| Joined: 13 Mar 2009 |
| Total Posts: 6485 |
|
|
| 22 Feb 2014 12:17 PM |
My point is cover is named correctly and it runs correctly, just not the first time it's loaded. -=Robo=- |
|
|
| Report Abuse |
|
|