here is my code can anyone tell me how to fix the frame doesnt pop up and the bool value is not set to true

local ABOUTButton = script.Parent
local IsOpenBool = script.Parent.IsOpen

local function Open()
    game.StarterGui.MENU.ABOUTBACKROUND.Visible = true
    IsOpenBool.Value = true
end

local function Checkifopen()
    if IsOpenBool.Value == true then
        IsOpenBool.Value = false
        game.StarterGui.MENU.ABOUTBACKROUND.Visible = false
    end
end

ABOUTButton.MouseButton1Click:Connect(function()
    Open()
    Checkifopen()
end)

4 comments

0

I answered the original with a fixed script

0

no you didnt

0

There are two answers, you may need to scroll down to see it.

0

If this is a local script then instead of using starter GUI do player.PlayerGui and it should change the GUI of the player. So local player = game.Players.LocalPlayer      Then do player.PlayerGui.Frame.Visible = true