#help with GUI (SOLVED)

6 messages · Page 1 of 1 (latest)

graceful horizon
#

i made a basic button that when you click on it the button disappears but later on i added a image label to go with the button which i don’t know how to make disappear at the same time as the button ;-; if anyone could help that would be great!! 🫶

here’s the code for the button:

local PlayButton - script. Parent function onClick()
PlayButton.BackgroundTransparency = 1
PlayButton. TextTransparency = 1|
end
PlayButton.MouseButton1Click:connect(onClick)
script. Parent.MouseButton1Click:Connect (function()
script. Parent. Parent. Visible = false
end)

runic lagoon
ivory monolith
#

Ever heard about image buttons?
They're images that are clickable just like a normal button ✨

#

Anyway, hiding the button is easier than you think, I have no clue how you got into trouble for all of that.

local PlayButton = script.Parent

local function onClickHide()
  PlayButton.Parent.Visible = false
end

PlayButton.MouseButton1Click:connect(onClickHide)
#

@graceful horizon

graceful horizon
#

thank you!!