ToolBase - Save player backpacks Data!

Hello, today i want to share my module!
You can save ur player’s backpack’s
with more functions
Im so sorry for my bad english.

Download

Roblox Library: (ToolBase - Roblox)

Example

local toolbase = require(game.ReplicatedStorage.ToolBase)

toolbase.run() –it will start toolbase
toolbase.savedata(userid,user.Backpack) –it will manually saves player data
toolbase.loadusertools(userid,user.Backpack) -it will manually loads player data

Settings

AutoDataSave = true, -- it will save player's backpack tools on player leaving.

LoadDataOnPlayerJoin = true, -- it will load player's backpack on player joining.

BlacklistedTools = {"Sword","Sword2"}, -- It wont save this named tools.

You need to add ur tools to there!
locate

You will use this module?

  • Yes! :slight_smile:
  • No :confused:
  • you need add more features :expressionless:

0 voters

14 Likes

Seems quite useful for any survival games or something like that, very nice!

3 Likes

Thank you very much! This is just what I needed.

2 Likes

YESS this is awesome! I’m assuming this should work across places as long as the datastore key is the same, right?

1 Like

yes it will work across places datastore key is same

1 Like

I don’t see why this would be used if ProfileService can be used instead by easily converting the children of the player’s backpack object into a table using that one instance converter module posted a while ago, then saving the table on leave and converting the table back into instances on player join. Also assuming this system uses Roblox’s default DSS

1 Like

Its a module if you want to modify, you can do that? I dont care the profileservice? if you doesnt like, dont use?

1 Like

It doesn’t seem to be working for me. Here is my code:

local toolbase = require(game.ReplicatedStorage.ToolBase)

toolbase.run()

game.Players.PlayerRemoving:Connect(function(plr)
	
	toolbase.savedata(plr.UserId,plr.Backpack)
	
end)

game.Players.PlayerAdded:Connect(function(plr)
	
	toolbase.loadusertools(plr.UserId, plr.Backpack)
	
end)

I will pick up the tool and leave the game but when I rejoin it doesn’t appear in my backpack.

Sorry for the trouble.

1 Like

there is autosave and autoload in settings and did u put ur tools to “Tools” folder?

Yeah I did. And also I originally had used those settings but that didn’t seem to work either.

Thanks for the help

EDIT: It seems to be working now. Thanks! This will be very helpful!

1 Like