Code:
local playerGui = game.Players.LocalPlayer.PlayerGui
local Clicked = playerGui.OpenPurchasesGui:WaitForChild("TextButton")
local DB = false
local PurchasesGui = playerGui:WaitForChild("PurchasesGui")
local Visible = PurchasesGui.Enabled
warn(Visible)
Clicked.Activated:Connect(function()
warn("Clicked")
if not DB then
DB = true
if Visible == true then
Visible = false
warn(Visible)
else
Visible = true
warn(Visible)
end
wait(.5)
DB = false
end
end)
I don't understand this. In output it says clicked and then true when it's changed to true and false when it's changed to false. When I check in the PlayerGui and look at ScreenGui, nothing has changed no matter what. I seriously don't know what's going on.
