Hey, so I am trying to make a gui pop up when a textbutton is clicked.. I know this should be easy to do, but yet my methods are not working.
v this is all under StarterGui
I am using a local script under the text button that is being clicked to open up the gui (maingui) which is a screengui
1st method
script.Parent.MouseButton1Down:connect(function()
game.Players.LocalPlayer.PlayerGui.maingui.Enabled = true
end)
Result: [ERROR] mangui is not a part of PlayerGui
2nd method
script.Parent.MouseButton1Down:connect(function()
game.StarterGui.maingui.Enabled = true
end)
Result: Nothing Happens.
|