generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Welppp

Previous Thread :: Next Thread 
robocu3 is not online. 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 is not online. 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 is not online. robocu3
Joined: 13 Mar 2009
Total Posts: 6485
21 Feb 2014 10:58 PM
anyone ;-;
Report Abuse
Crazy010517 is not online. Crazy010517
Joined: 17 Sep 2011
Total Posts: 1161
22 Feb 2014 12:38 AM
What's the parent of this script?
Report Abuse
Crazy010517 is not online. Crazy010517
Joined: 17 Sep 2011
Total Posts: 1161
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 is not online. 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
Crazy010517 is not online. Crazy010517
Joined: 17 Sep 2011
Total Posts: 1161
22 Feb 2014 11:37 AM
Disabling and enabling a script doesn't not affect the script...
Report Abuse
robocu3 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image