Hello this is my problem.
I would like that when I press the Imagebutton, the “ScreenGUI” to be enabled or disabled, but nothing happens.
Here is my code:
-- << Services >> --
-- << Variables >> --
local button = script.Parent
local menuToOpen = game.StarterGui.SpeedObbyGame.MenuGUI
-- << Functions >> --
-- << Connections >> --
button.Activated:Connect(function()
if menuToOpen.Enabled == true then
menuToOpen.Enabled = false
elseif menuToOpen.Enabled == false then
menuToOpen.Enabled = true
end
end)
And a screenshot of the 2 repertory:
Thanks.