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

How do I make a gui fade in and out? [Answered]

Asked by 9 years ago

I tried this..

wait(5)
game.StarterGui.IntroGui.Background1.BackgroundTransparency = 0.9
wait(1)
game.StarterGui.IntroGui.Background1.BackgroundTransparency = 0.8
wait(1)
-- etc.

Notice, it didnt just end right there :P But, does anybody have any ideas?

1 answer

Log in to vote
1
Answered by 9 years ago
plr=game.Players.LocalPlayer
if script.Parent.Parent.Parent.Parent.Parent==plr then
wait(5)
for i=1, 10 do
wait(1)
script.Parent.BackgroundTransparency=script.Parent.BackgroundTransparency-.1
end
end

If it didn't work, sorry.

What you did was update the GUI, you need to get the players, then do the code. You can also do what I did, and just update the GUI from inside itself. Just put the above script in Background1. It will subtract .1 from the transparency each second, for 10 seconds, which is easier then what you did above.

0
Thanks, that worked perfectly!! +1 and a check mark is what you got :3 SchonATL 15 — 9y
Ad

Answer this question