Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

[INTRO GUI] How do I keep the ImageLabel's BackgroundColor transparent?

Asked by 10 years ago

I'm making an intro GUI using only a ImageLabel. I created a script that makes it appear, wait 5, then disappears. The way my Intro GUI works is: StarterGui > ScreenGui > ImageLabel > Script.

The image in ImageLabel is a .png type with a transparent background.

The script inside the ImageLabel is below:

while true do --GUI starts script.Parent.Transparency = 1 script.Parent.ImageTransparency = 1 wait(3) script.Parent.Transparency = 0.9 script.Parent.ImageTransparency = 0.9 wait(0.1) script.Parent.Transparency = 0.8 script.Parent.ImageTransparency = 0.8 wait(0.1) script.Parent.Transparency = 0.7 script.Parent.ImageTransparency = 0.7 wait(0.1) script.Parent.Transparency = 0.6 script.Parent.ImageTransparency = 0.6 wait(0.1) script.Parent.Transparency = 0.5 script.Parent.ImageTransparency = 0.5 wait(0.1) script.Parent.Transparency = 0.4 script.Parent.ImageTransparency = 0.4 wait(0.1) script.Parent.Transparency = 0.3 script.Parent.ImageTransparency = 0.3 wait(0.1) script.Parent.Transparency = 0.2 script.Parent.ImageTransparency = 0.2 wait(0.1) script.Parent.Transparency = 0.1 script.Parent.ImageTransparency = 0.1 wait(0.1) --Image is at 0 transparency script.Parent.Transparency = 0 script.Parent.BackgroundTransparency = 0 wait(6) --how long the image will appear script.Parent.Transparency = 0.1 script.Parent.ImageTransparency = 0.1 wait(0.1) script.Parent.Transparency = 0.2 script.Parent.ImageTransparency = 0.2 wait(0.1) script.Parent.Transparency = 0.3 script.Parent.ImageTransparency = 0.3 wait(0.1) script.Parent.Transparency = 0.4 script.Parent.ImageTransparency = 0.4 wait(0.1) script.Parent.Transparency = 0.5 script.Parent.ImageTransparency = 0.5 wait(0.1) script.Parent.Transparency = 0.6 script.Parent.ImageTransparency = 0.6 wait(0.1) script.Parent.Transparency = 0.7 script.Parent.ImageTransparency = 0.7 wait(0.1) script.Parent.Transparency = 0.8 script.Parent.ImageTransparency = 0.8 wait(0.1) script.Parent.Transparency = 0.9 script.Parent.ImageTransparency = 0.9 wait(0.1) script.Parent.Transparency = 1 script.Parent.ImageTransparency = 1 wait(0.1) --Image dissapears, intro completed. script.Parent:remove() end

What I wanted was the logo appearing only, with no background or boxes or borders, just the image. The problem with it is that when the image appears, I see a black background with it. The ImageLabel's BackgroundTransparency was set to 1 before I play solo. When I spawned, the GUI shows up, but with a black background, then the image and the black background disappears.

How do I make the ImageLabel's BackgroundColor transparent throughout the entire intro sequence?

Answer this question