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

How to make a gui appear when a button is pressed?

Asked by 6 years ago

So im trying to make a script for a gui to appear on the screen when a txtbutton is pressed, but im not getting any good results.Any help?

0
try first, if you already attempted show us your attempt BlackOrange3343 2676 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago

Lets say you have a localscript in a textbutton. You want the frame to be invisible when you click it. Just do this

local Frame = Where the frame is

script.Parent.MouseButton1Click:connect(function()
    Frame.Visible = false
end)

Its pretty simple but does the work.

(Next time try doing research SH isn't for request you just got lucky this time)

Ad

Answer this question