What am I trying to do?
I am trying to make a button make a GUI appear once a player presses it.
What is the issue?
Whenever I press the button, the GUI is not showing. I used print() in the function and it registered the click, but the GUI did not appear.
What do I have?
local button = script.Parent
local gui = game.StarterGui.MenuGUI.ProfileFrame -- The GUI I want to appear
button.MouseButton1Click:Connect(function()
gui.Visible = true
end)
The code is in a LocalScript inside the button.
I would really appreciate it if someone knew how to solve this problem, I have not scripted GUIs that much so it would be very useful!