of     1   

RealFrantic
#228370317Sunday, December 03, 2017 8:27 AM GMT

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.
Soybeen
#228370402Sunday, December 03, 2017 8:30 AM GMT

1: " [ERROR] mangui " Do you mean maingui? The error means what it says. There is no child named maingui under your PlayerGui. It's case-sensitive btw 2: You're trying to affect the StarterGui. That is kept server-sided. Its contents are what replicate to the PlayerGuis of each player, so changing what's in the StarterGui will only set the template for the fresh spawns (which you don't want to do, and wouldn't even work locally unless FE is off)
RealFrantic
#228370462Sunday, December 03, 2017 8:33 AM GMT

What do think I should do then
RealFrantic
#228370698Sunday, December 03, 2017 8:44 AM GMT

bump
Soybeen
#228370747Sunday, December 03, 2017 8:46 AM GMT

I told you in #1, the error means what it says. There is no child named maingui underneath the Player's PlayerGui.

    of     1