|
| 02 Jun 2016 04:27 AM |
I will be paying 400 robux for a backpack datastore. A backpack datastore is a datastore that saves a players backpack so all their weapons are not taken from them when they leave. (I don't know if there is a real name for it so I just call it "backpack datastore".
If you want slightly full payment then you will have to be bc because of the ridiculous 90% market fee which will only give you 40 robux.
If you need me to be more specific just reply to this thread.
Halo, Owner of Hydra Studios. |
|
|
| Report Abuse |
|
|
|
| 02 Jun 2016 04:36 AM |
So simply everything in their backpack and I'm assuming also if they have a tool out you want that aswell?
|
|
|
| Report Abuse |
|
|
|
| 02 Jun 2016 04:37 AM |
Exactly.
Halo, Owner of Hydra Studios. |
|
|
| Report Abuse |
|
|
| |
|
|
| 02 Jun 2016 04:39 AM |
If your not taking 40 robux for it then yes. It is because of ROBLOX trying to push us towards buying BC so they put a 90% market fee but I can try and pay you over time?
Halo, Owner of Hydra Studios. |
|
|
| Report Abuse |
|
|
|
| 02 Jun 2016 04:40 AM |
Ah ill take the 40, do you want it to give the tools back when the game starts?
|
|
|
| Report Abuse |
|
|
|
| 02 Jun 2016 04:40 AM |
Yes.
Halo, Owner of Hydra Studios. |
|
|
| Report Abuse |
|
|
|
| 02 Jun 2016 04:52 AM |
Ah I gtg, here is the code I had so far, you need to have a folder in replicatedStorage called "SaveableTools" with every tool you want to allow to be saved in it.
This goes in a regular script in workspace or ServerScriptService
local SaveTools = game:GetService("ReplicatedStorage") local DataStore = game:GetService("DataStoreService"):GetDataStore("NameThisWhatYouWant") -- If you change it, all data will be erased
game.Players.PlayerAdded:connect(function(player) local key = "user_" .. player.userId if DataStore:GetAsync(key) then for _, Tool in pairs (DataStore:GetAsync(key)) do for _, SaveTool in pairs (SaveTools:GetChildren()) do if Tool.Name == SaveTool.Name then SaveTool:Clone().Parent = player:WaitForChild("Backpack") end end end else DataStore:SetAsync(key, {}) end end)
game.Players.PlayerRemoving:connect(function(player) local toolsToSave = {} local key = "user_" .. player.userId for _, v in pairs (player.Backpack:GetChildren()) do table.insert(toolsToSave, v.Name) end for _, t in pairs (player.Character:GetChildren()) do if t:IsA "Tool" then table.insert(toolsToSave, t.Name) end end DataStore:SetAsync(key, toolsToSave) end)
|
|
|
| Report Abuse |
|
|
|
| 02 Jun 2016 05:30 AM |
Thanks! Can you join this group so I can pay you :) https://www.roblox.com/My/Groups.aspx?gid=2680406
Halo, Owner of Hydra Studios. |
|
|
| Report Abuse |
|
|
| |
|