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
 

Re: how do i make this gui ALL fade out?

Previous Thread :: Next Thread 
Aslum is not online. Aslum
Joined: 09 Dec 2011
Total Posts: 7937
06 Aug 2015 01:06 PM
This is my code
local screenGui = Instance.new("ScreenGui")
screenGui.Parent = script.Parent

local frame = Instance.new("Frame")
frame.Parent = screenGui
frame.Position = UDim2.new(0, 0, -0.25, 0)
frame.Size = UDim2.new(1, 0, 1.5, 0)
frame.BackgroundColor3 = Color3.new(0, 0, 0)

local imageLabel = Instance.new("ImageLabel")
imageLabel.Parent = screenGui
imageLabel.Position = UDim2.new(.5,-400,.5,-150)
imageLabel.Size = UDim2.new(0, 800, 0, 300)
imageLabel.Image = "rbxassetid://280161329"
wait(5)
for i = 0,100 do
frame.BackgroundTransparency = i/100
wait()
end

I have both imageLabel and frame.
This fades out the frame but the image is still there.
for i = 0,100 do
imageLabel.BackgroundTransparency = i/100
wait()
end

I have also tried to do that above ^ to replace the frame with imageLabel and it doesn't do anything

pls help
Report Abuse
Funse is not online. Funse
Joined: 11 Jun 2012
Total Posts: 7887
06 Aug 2015 01:09 PM
for i = 0,100 do
imageLabel.BackgroundTransparency = i/100
imageLabel.ImageTransparency = i/100
wait()
end
Report Abuse
Aslum is not online. Aslum
Joined: 09 Dec 2011
Total Posts: 7937
06 Aug 2015 01:11 PM
funse that removes only the image
i still need to remove the frame
Report Abuse
Aslum is not online. Aslum
Joined: 09 Dec 2011
Total Posts: 7937
06 Aug 2015 01:15 PM
ived ended up making a script that just fades out the image over and over lol
Report Abuse
Aslum is not online. Aslum
Joined: 09 Dec 2011
Total Posts: 7937
06 Aug 2015 02:39 PM
dss
Report Abuse
FIares is not online. FIares
Joined: 07 Nov 2010
Total Posts: 641
06 Aug 2015 02:42 PM
Do what he did, and just put all of the things that need to be faded out inside the for loop.


Check out my in-game scripting tutorial! [ 279086510 ]
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