PlumJar
|
  |
| Joined: 04 Mar 2012 |
| Total Posts: 907 |
|
|
| 13 Oct 2014 12:46 AM |
Im trying to make this script save the inventory, but its not working D; I need it to save when you leave and load when you enter the game.
Please help! Thank youuu!
game.Players.PlayerAdded:connect(function(p) p.CharacterAdded:connect(function(c) p:WaitForDataReady() if p:FindFirstChild("Backpack") ~= nil then c = game.StarterPack:GetChildren() for i = 1, #c do c[i]:clone().Parent = p.Backpack end end end) end)
game.Players.PlayerRemoving:connect(function(p) p:WaitForDataReady() p:SaveInstance("Backpack", p.Backpack) end)
Mewo. |
|
|
| Report Abuse |
|
|
Goulstem
|
  |
| Joined: 04 Jul 2012 |
| Total Posts: 7177 |
|
|
| 13 Oct 2014 12:48 AM |
EWWWWWWW DATA PERSISTANCE
p.Backpack:GetChildren() |
|
|
| Report Abuse |
|
|
PlumJar
|
  |
| Joined: 04 Mar 2012 |
| Total Posts: 907 |
|
| |
|
PlumJar
|
  |
| Joined: 04 Mar 2012 |
| Total Posts: 907 |
|
|
| 13 Oct 2014 12:53 AM |
so confused, please help?
Mewo. |
|
|
| Report Abuse |
|
|
Goulstem
|
  |
| Joined: 04 Jul 2012 |
| Total Posts: 7177 |
|
|
| 13 Oct 2014 12:57 AM |
| I already told you.. read my post again. |
|
|
| Report Abuse |
|
|
PlumJar
|
  |
| Joined: 04 Mar 2012 |
| Total Posts: 907 |
|
| |
|
gooey333
|
  |
| Joined: 24 Mar 2013 |
| Total Posts: 1208 |
|
| |
|
PlumJar
|
  |
| Joined: 04 Mar 2012 |
| Total Posts: 907 |
|
|
| 13 Oct 2014 03:49 AM |
ok whoever gives it to me first will get paid
Mewo. |
|
|
| Report Abuse |
|
|