Interface and Save Manager

This is mostly used for Settings.

To save and edit the interface, have these variables somewhere in your code.

local SaveManager = loadstring(game:HttpGet("https://raw.githubusercontent.com/1dontgiveaf/Fluent/main/Addons/SaveManager.lua"))()
local InterfaceManager = loadstring(game:HttpGet("https://raw.githubusercontent.com/1dontgiveaf/Fluent/main/Addons/InterfaceManager.lua"))()

To use this though, pass your script to our managers.

SaveManager:SetLibrary(Fluent)
InterfaceManager:SetLibrary(Fluent)

To not save themes, use this.

SaveManager:IgnoreThemeSettings()

You can add indexes of elements the save manager should ignore.

SaveManager:SetIgnoreIndexes({}) 

Make a folder where you want your stuff to go.

InterfaceManager:SetFolder("Name") -- Name of your ScriptHub, or anything
SaveManager:SetFolder("Name/Game") -- The game, or anything else

At the end of everything, build the settings tab.

InterfaceManager:BuildInterfaceSection(Tabs.Settings) -- The Tab you want settings in.
SaveManager:BuildConfigSection(Tabs.Settings)

If you want, you can use this to load a marked config to auto-load.

SaveManager:LoadAutoloadConfig()

Last updated