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

I'm having a problem with text buttons to fade if clicked?

Asked by
CjayPlyz 643 Moderation Voter
6 years ago

I'm trying to find a script, so if the textbutton is clicked it will fade away, and i want it so that it replicates first, so if you start the game, you will not see the backround for a split second. it works right now, but im having problems making it fade if clicked, and the gui is in the startergui.

0
You need to try first, before you ask us. This is a helping site and unfortunately not a script request site. RootEntry 111 — 6y

1 answer

Log in to vote
0
Answered by
nap516 87
6 years ago
Edited 6 years ago

I'll help you.

Just an FYI, this is NOT a requesting site but just this time I will help you.

--Replace GUINAMEHERE, FRAMENAMEHERE, and TEXTBUTTONNAME HERE with the name of your screengui, frame, and textbutton.

local gui = game.Players.LocalPlayer.PlayerGui.GUINAMEHERE.FRAMENAMEHERE.TEXTBUTTONNAMEHERE

wait(0.1)
script.Parent.MouseButton1Click:Connect(function(c)
    gui.Visible = false
end)
0
Btw, please mark this as the answer if it works. nap516 87 — 6y
Ad

Answer this question