How to make a key both open a gui and close it?

local is_open = frame:GetAttribute("Open") == true -- makes nil false

‘nil’ is already falsy.

1 Like

Yes, and most times it works, but I ran into situations where it would set the value of an attribute to nil and it would cause issues. So to be safe I just force nil to be a false boolean instead.