Hello I have a function here that opens a window perfectly fine and every click on the button checks to see if the window is open/closed. But when the window is open another click of the button will not close it.
local function openChar()
if isCharOpen == false then
script.Parent.RoundBoxChar.Visible = true
script.Parent.upTriangleChar.Visible = true
isCharOpen = true
else
script.Parent.RoundBoxChar.Visible = false
script.Parent.upTriangleChar.Visible = false
isCharOpen = false
end
