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: GUI Transparency script

Previous Thread :: Next Thread 
TrueSoulWolf is not online. TrueSoulWolf
Joined: 02 Apr 2011
Total Posts: 460
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 is not online. 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
TrueSoulWolf is not online. TrueSoulWolf
Joined: 02 Apr 2011
Total Posts: 460
03 Oct 2011 08:30 PM
I just tried both of those, didn't work :|
Report Abuse
aboy5643a is not online. 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
TrueSoulWolf is not online. TrueSoulWolf
Joined: 02 Apr 2011
Total Posts: 460
03 Oct 2011 08:37 PM
Yes, it works now! Thank you.
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