CanSaveBackpack
The CanSaveBackpack setting allows you to automatically save tools in the player backpack including the players equipped tool however there is some additional things to do.
How to save the player backpack:
Enable the CanSaveBackpack
Add a copy of the tools you want the backpack to save in CanSaveBackpack -> SaveableTools
Ensure that the tools in SaveableTools is named exactly how they will be when they are saved, If not then they will not be retrieved
Settings Classes
SaveableTools
Folder
The location where all saveable tools must be. These tools names must be exact for the system correspond them correctly.
SaveOnDeath
Attribute (Bool)
TRUE (Default): Saves the player backpack on the player death and retrieves when respawned
FALSE: Does not save player backpack if they die
SaveOnRejoin
Attribute (Bool)
TRUE (Default): Saves the player backpack upon leaving the game and reteives it when joining back
FALSE: Does not save the player backpack when they leave the game
AutoDetectTools
The AutoDetectTools setting is a new feature (as of Version 7) within CanSaveBackpack that will when enabled will automatically go through as many of the game files as possible to find tools, clone them and put them in SaveableTools.
This is an experimental feature because due to security limitations this feature may not always work if it cannot access that instence type. It's recommended that tools are kept in either Workspace, ReplicatedFirst or ReplicatedStorage. If you are unable and this feature is not able to detect the tool then put it in the saveable tools folder.
If you want a tool to not be detected by this feature then give it a bool attribute and name it "ignore" and set the value to true and the game will ignore it and not save it.
Limitations:
Saveable Tools must be named exactly how they will be named when the game attempts to save them
Any tools not in SaveableTools file will NOT be retrieved however will be stored unless the player rejoins
Any tools that are named the same and are in SaveableTools may have issues when retrieving. Please avoid naming tools the same
Possible Errors
No Backpack found for player
Player instance did not have a backpack. This is likely a loading issue
Probably a Roblox Outage causing loading delays. Unlikely error
... was unretrievable. Please put a copy of the tool in the SaveableTools folder
Could not find the given tool name in 'SaveableTools' folder
Duplicate the tool and move it to Settings -> CanSaveBackpack -> SaveableTools
Useful Attributes
Here are some useful attributes to add to your tools to manipulate the saving process easily! Remember you must add the attribute to the tool from the priorities and naming, type as well as value must be exact.
SaveOnDeath
Bool
When true, it saves the tool on the player's death.
When false, tool is not saved on death
TRUE
SaveOnRejoin
Bool
When true, it saves the tool when the player leaves the game.
When false, tool is not saved when the player leaves
TRUE
ignore
Bool
When true, AutoDetectTools will not detect the tool to be put into SaveableTools
When false, AutoDetectTools can clone the tool into the SaveableTools folder
FALSE
Last updated