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 » Scripters
Home Search
 

GUI background transparency help

Previous Thread :: Next Thread 
jordanNin64 is not online. jordanNin64
Joined: 07 Jun 2013
Total Posts: 2457
10 May 2015 12:17 PM
while true do
wait()
if workspace.Finished.Value == true then
wait(3)
while true do
wait()
print (script.Parent.BackgroundTransparency)
script.Parent.BackgroundTransparency = script.Parent.BackgroundTransparency-0.1
if script.Parent.BackgroundTransparency <0 then
wait(3)
script.Parent.BackgroundTransparency = script.Parent.BackgroundTransparency+0.1
if script.Parent.BackgroundTransparency == 1 then
break
end
end
end
end
end


Ive made a big black screen GUI that when activated, turns the screen to pitch black, and then after 3 seconds, slowly becomes transparent again. The only problem is that i cant make it go down to 0, because the number eventually reaches a number smaller than 0.1, so it cant be lowered anymore.
Report Abuse
jordanNin64 is not online. jordanNin64
Joined: 07 Jun 2013
Total Posts: 2457
10 May 2015 12:31 PM
b1
Report Abuse
jordanNin64 is not online. jordanNin64
Joined: 07 Jun 2013
Total Posts: 2457
10 May 2015 12:45 PM
b2
Report Abuse
CrowClaws is not online. CrowClaws
Joined: 04 Jul 2010
Total Posts: 4466
10 May 2015 01:14 PM
do something like this

local function Fade(Frame)
for T = 1,0,-.1 do
wait(.1)
Frame.BackgroundTransparency = T
end

wait(3)

for T = 0,1,.1 do
wait(.1)
Frame.BackgroundTransparency = T
end

end

Fade(script.Parent)
Report Abuse
jordanNin64 is not online. jordanNin64
Joined: 07 Jun 2013
Total Posts: 2457
10 May 2015 01:18 PM
It works! thank you very much :D
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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