So I'm trying to make a button GUI that when clicked, will turn the transparency of the GUIs around it to 1, making them invisible. I have experience with ROBLOX studio but not much. Here is my script:

-- the first variable is the frame of the button, button GUI theparentofthis = script.Parent -- this variable below is the variable for the mouseclick thebutton = theparentofthis.MouseButton1Click --this is the function I call when the button is clicked if thebutton.clicked then theparentofthis.TextTransparency = 1 theparentofthis.BackgroundTransparency = 1

end

I know that I just copied and pasted this, but I'm trying to keep the idea of my game a secret. Is there anyone that can help me?