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

How do I make a button's parent (a frame) invisible?

I am making a car and I want to note the transmission modes. But having it there while driving can get pretty annoying therefore I want to make it so when I press a button, the parent becomes invisible. The button has transparency set to 1 and is in the same frame as the text, by the way. I am a newbie scripter, and I've tried some scripts but haven't found a solution to my problem. Any help is appreciated.

2 answers

Making Frame Invisible

To make the Frame invisible, you can check the Visible to false. You can do it by using a Script.

Script:

script.Parent.MouseButton1Click:Connect(function() --Detect if button clicked

script.Parent.Parent.Visible = false --Change the frame visible to false

end)

Comment if you find any problem.

Hope It Help!

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