The librarization of Luau has come, This is the left-pad of Roblox. This module is really unnecessary, you have to require a whole module which defines a function just to do something you can do natively with one line Frame.Visible = not frame.Visible
i suggest adding some unique features to make this standout, as others have mentioned, this can be achieved with one line, though if your looking for a cleaner alternative, you could simply wrap the line in a function, for example:
local function toggle(guiObject: GuiObject)
guiObject.Visible = not guiObject.Visible
end
--optional variant
local function setVisibility(guiObject: GuiObject, state: boolean)
guiObject.Visible = state
end