generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

How to save tools/inventory?

Previous Thread :: Next Thread 
PlumJar is not online. 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 is not online. Goulstem
Joined: 04 Jul 2012
Total Posts: 7177
13 Oct 2014 12:48 AM
EWWWWWWW DATA PERSISTANCE

p.Backpack:GetChildren()
Report Abuse
PlumJar is not online. PlumJar
Joined: 04 Mar 2012
Total Posts: 907
13 Oct 2014 12:48 AM
D; Wha? What??


Mewo.
Report Abuse
PlumJar is not online. PlumJar
Joined: 04 Mar 2012
Total Posts: 907
13 Oct 2014 12:53 AM
so confused, please help?


Mewo.
Report Abuse
Goulstem is not online. 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 is not online. PlumJar
Joined: 04 Mar 2012
Total Posts: 907
13 Oct 2014 01:04 AM
Not really...


Mewo.
Report Abuse
gooey333 is not online. gooey333
Joined: 24 Mar 2013
Total Posts: 1208
13 Oct 2014 03:07 AM
I told you I would do it.
Report Abuse
PlumJar is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image