My script opens the gui, but it doesnt close it, can someone fix it?
wait(1)
local Active = game.Players.LocalPlayer.PlayerGui.ScrollingGui.Enabled
script.Parent.MouseButton1Click:connect(function()
if Active == false then
game.Players.LocalPlayer.PlayerGui.ScrollingGui.Enabled = true
end
if Active == true then
game.Players.LocalPlayer.PlayerGui.ScrollingGui.Enabled = false
end
end)

1 comment
Thanks, it works!