LCPLgeek
|
  |
| Joined: 28 Dec 2009 |
| Total Posts: 2770 |
|
|
| 11 Oct 2011 04:07 AM |
Title, but can I use DP (Data Persistence) to save a user's startergear, and then load it?
Thanks, LCPLGeek |
|
|
| Report Abuse |
|
|
dap300
|
  |
| Joined: 23 Nov 2009 |
| Total Posts: 4738 |
|
|
| 11 Oct 2011 06:03 AM |
| You can save name of the tools and make a script to insert them based on name. |
|
|
| Report Abuse |
|
|
br45entei
|
  |
| Joined: 06 Nov 2010 |
| Total Posts: 1058 |
|
|
| 11 Oct 2011 06:14 AM |
Use this:
Starterpackitems = game.Players.LocalPlayer.StarterPack:GetChildren() game.Players.LocalPlayer:WaitForDataReady()
game.Players.LocalPlayer.Character.Humanoid.Died:connect(function() for i = 1, # StarterPackitems do game.Players.LocalPlayer:SaveInstance("Starterpack"..tonumber(i), StarterPackitems[i]) wait(0.1) end end)
I'm not sure if it's error-free, but it may work. I've used these before. |
|
|
| Report Abuse |
|
|
|
| 11 Oct 2011 06:53 AM |
"Starterpackitems = game.Players.LocalPlayer.StarterPack:GetChildren() game.Players.LocalPlayer:WaitForDataReady()
game.Players.LocalPlayer.Character.Humanoid.Died:connect(function() for i = 1, # StarterPackitems do game.Players.LocalPlayer:SaveInstance("Starterpack"..tonumber(i), StarterPackitems[i]) wait(0.1) end end)"
That has too much errors, I'm currently working on a GUI Thats saved you Inventory (Starter Pack)
I'l send you a link when its done. |
|
|
| Report Abuse |
|
|
LCPLgeek
|
  |
| Joined: 28 Dec 2009 |
| Total Posts: 2770 |
|
|
| 11 Oct 2011 05:13 PM |
| thanks, I wrote a script, but it's having some issues with it :/ |
|
|
| Report Abuse |
|
|