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
 

Re: Is it possible to save a starterpack?

Previous Thread :: Next Thread 
LCPLgeek is not online. 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 is not online. 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 is not online. 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
ItchyWolfy is not online. ItchyWolfy
Joined: 25 Oct 2010
Total Posts: 1838
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 is not online. 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
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