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

How can I make my ImageLabel fade out after clicking the "play button"?

Asked by 6 years ago

StarterGui>ScreenGui>LocalScript1

StarterGui>TextLabel>LocalScript2

StarterGui>ImageLabel

In Local Script 1 my script looks like this:

print("DONE")

local textlabel = script.Parent:WaitForChild("Play")

wait(1)

textlabel:TweenPosition(UDim2.new(0.005, 0,0.006, 0),"Out","Back",0.5)

wait (3)

--This causes my play button to appear--

In Local Script 2 my script looks like this:

script.Parent.MouseButton1Click:connect(function()

script.Parent:TweenPosition(UDim2.new(-0.313, 0,0.012, 0),"Out","Back",0.5)

wait(3)

end)

--Makes Play Button disappear when clicked--

My issue is that I can't seem to find a way to have my background which is my ImageLabel fade out after my play button is clicked. Can anyone offer any help or tips? I would greatly appreciate it!

0
how do you want the backround to fade? into blackness? into whitness? or just go transparent so the player sees their character? RiskoZoSlovenska 378 — 6y
0
Ideally, I'd like the background to fade into whiteness, and then be removed entirely-allowing the player to see their charcater 1rogirlz 2 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago

You could just add a gui that covers the whole screen, and then make it fade over the background so it looks like the background is fading

Ad

Answer this question