Hey,
So what I’m trying to do is enable the Gamepass gui once the textbutton is clicked. The thing is - it says that the gui is enabled even though it’s invisible. Am I doing something wrong?
local gui = game.StarterGui.Gamepass
local button = script.Parent
local function onClick()
if gui.Enabled == true then
gui.Enabled = false
else
gui.Enabled = true
end
end
button.MouseButton1Click:connect(onClick)
Hey, so your solution worked for a short amount of time, then it just said this: Gamepass is not a valid member of PlayerGui "Players.[NAME].PlayerGui"
What’s happening??