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: Save

Previous Thread :: Next Thread 
Elopus001 is not online. Elopus001
Joined: 28 Aug 2011
Total Posts: 482
03 Mar 2012 05:51 PM
How do you save leaderstats? Don't say anything if you don't have the answer to tell me.
Report Abuse
swmaniac is not online. swmaniac
Joined: 28 Jun 2008
Total Posts: 15773
03 Mar 2012 06:09 PM
player:SaveNumber(player.leaderstats["Whatever you want to save"].Value)
Report Abuse
bongo555 is not online. bongo555
Joined: 21 Nov 2010
Total Posts: 132
03 Mar 2012 08:13 PM
player.save
function
("Leaderboard") if
leave "[Save]" value) = 0
if
respawn "[Save]" value) = 0
end
Report Abuse
machokickface is not online. machokickface
Joined: 12 Aug 2010
Total Posts: 1774
03 Mar 2012 10:18 PM
game.Players.PlayerRemoving:connect(function(p)
if p:findFirstChild("leaderstats") then
p:SaveInstance("SavedStatPNum"..tostring(game.PlaceId),p.leaderstats)
end
end)
game.Players.PlayerAdded:connect(function(p)
for k = 1, 60, 0.03 do
wait()
if p:findFirstChild("leaderstats") and p.DataReady then break end
end
local Loaded = nil
if p:findFirstChild("leaderstats") and pcall(function() Loaded = p:LoadInstance("SavedStatPNum"..tostring(game.PlaceId)) end) then
for j, v in pairs(Loaded:GetChildren()) do
pcall(function() p.leaderstats[v.Name].Value = v.Value end)
end
end
end)
Report Abuse
Elopus001 is not online. Elopus001
Joined: 28 Aug 2011
Total Posts: 482
04 Mar 2012 02:28 PM
Can you add a load?
Report Abuse
Elopus001 is not online. Elopus001
Joined: 28 Aug 2011
Total Posts: 482
05 Mar 2012 06:23 PM
Clearly I picked a bad time.
Report Abuse
WiseNoobCrusher is not online. WiseNoobCrusher
Joined: 22 Dec 2010
Total Posts: 42
05 Mar 2012 06:48 PM
get mine in my models
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