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
 

make gui fade in/out

Previous Thread :: Next Thread 
swooby is not online. swooby
Joined: 30 Dec 2010
Total Posts: 1986
20 Jul 2016 10:02 PM
how would i do so with adding it in this script i already made?


---------------------
local gui = script.Parent
local stats = gui.Parent:WaitForChild('UCLA Stats')
local bool = false

gui.MouseButton1Click:connect(function()
bool = not bool
if bool then
gui.Text = 'OPEN'
else
gui.Text = 'CLOSE'
end
stats.Active = not bool
stats.Visible = not bool
for i,v in next, stats:GetChildren() do
v.Active = not bool
v.Visible = not bool
end
end)


drink lots of water or ur gonna die
Report Abuse
swooby is not online. swooby
Joined: 30 Dec 2010
Total Posts: 1986
20 Jul 2016 10:19 PM
b


drink lots of water or ur gonna die
Report Abuse
Dominical is not online. Dominical
Joined: 04 Nov 2011
Total Posts: 1303
20 Jul 2016 10:21 PM
function fadeIn(guiElement)
for i=1,0,-0.1 do
guiElement.BackgroundTransparency=i
wait()
end
end

function fadeOut(guiElement)
for i=0,1,0.1 do
guiElement.BackgroundTransparency=i
wait()
end
end


Report Abuse
j_ffrey is not online. j_ffrey
Joined: 12 Apr 2015
Total Posts: 262
20 Jul 2016 10:21 PM

if gui.transparency < 1
then gui.transparency = gui.transparency + 0.1



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