Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

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

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

✓ Accepted answer
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.

1 comment

0

Thanks, that worked perfectly!! +1 and a check mark is what you got :3

This discussion is preserved as it was. New answers, comments, and votes are closed.