local button = script.Parent
local function onButtonActivated()
print("Settings")
game.StarterGui.Menu.Settings.Visible = true
end
button.Activated:Connect(onButtonActivated)
So, basically, this script makes a GUI appear when you click a GUITextButton. Now, it works perfectly. It prints the message, and sets the frame to Visible, but for some odd reason the frame STILL doesn’t appear. Its position is correct, it is set to Visible, and it’s parent is enabled, yet it still doesn’t actually appear.
No, it’s a GUITextButton. I have a main menu, in which there are a few buttons. When you click a button, another GUI appears. I’m having trouble with the appearing part. It says it’s visible, but it’s not there.
This is just a beginner mistake lol. You’re editing the GUI in StarterGui, which will not do anything. You need to change it from the player’s PlayerGui in order for it to work.
LocalScript in the Settings TextButton:
local button = script.Parent
local function onButtonActivated()
print("Settings")
script.Parent.Visible = true
end
button.Activated:Connect(onButtonActivated)