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 » Scripters
Home Search
 

Re: OMGTHISISHARD How do I save Number values ??????

Previous Thread :: Next Thread 
ShikasCloud is not online. ShikasCloud
Joined: 18 Nov 2014
Total Posts: 221
15 Jul 2016 07:05 PM
When a player joins they have a value in there starterpack named Strength When they I leave I want that value to save then when he joins it loads HOWWWW????? Every tutorial just uses leaderboards and I don't want a leaderboard D:
Report Abuse
Negativize is not online. Negativize
Joined: 02 May 2011
Total Posts: 25068
15 Jul 2016 07:05 PM
Use DataStore.

http://wiki.roblox.com/index.php?title=Data_store
Report Abuse
ShikasCloud is not online. ShikasCloud
Joined: 18 Nov 2014
Total Posts: 221
15 Jul 2016 07:07 PM
I know i'm using datastores......But like how do I remove the leaderboards.Literally EVERY tutorial uses those and there not that helpful.Can someone make a huge tutorial that is very useful All I want it to do is how to save one mere value.NO LEADERBOARDS :P
Report Abuse
Negativize is not online. Negativize
Joined: 02 May 2011
Total Posts: 25068
15 Jul 2016 07:08 PM
Actually read the wiki page. Contains some useful stuff.
Report Abuse
ShikasCloud is not online. ShikasCloud
Joined: 18 Nov 2014
Total Posts: 221
15 Jul 2016 07:10 PM
I did.
Report Abuse
Negativize is not online. Negativize
Joined: 02 May 2011
Total Posts: 25068
15 Jul 2016 07:11 PM
You couldn't of read that whole thing in 5 minutes unless you've read it before.
Report Abuse
ShikasCloud is not online. ShikasCloud
Joined: 18 Nov 2014
Total Posts: 221
15 Jul 2016 07:13 PM
I Have thats why I said it was so hard.
Report Abuse
xXIcanthinkofanameXx is not online. xXIcanthinkofanameXx
Joined: 05 May 2012
Total Posts: 857
15 Jul 2016 07:14 PM
I wouldn't feed the troll.
Report Abuse
ShikasCloud is not online. ShikasCloud
Joined: 18 Nov 2014
Total Posts: 221
15 Jul 2016 07:17 PM
? Im asking for help
Report Abuse
xXIcanthinkofanameXx is not online. xXIcanthinkofanameXx
Joined: 05 May 2012
Total Posts: 857
15 Jul 2016 07:20 PM
Mhm
Report Abuse
ShikasCloud is not online. ShikasCloud
Joined: 18 Nov 2014
Total Posts: 221
15 Jul 2016 08:50 PM
BUMP
Report Abuse
SpeedySeat is online. SpeedySeat
Joined: 06 Jul 2011
Total Posts: 3048
15 Jul 2016 08:57 PM
For saving single values I would recommend using the PlayerDataStore module.

http://wiki.roblox.com/index.php?title=PlayerDataStore_module

PlayerDataStore makes it so you can make very quick requests to save and it only refreshes the DataStore every so often and when a player leaves to save requests.

When you issue require() on that module, you could do things like this very easily and just display this how you want to:
_____________________________________________________________________________
local plds = require(script.PlayerDataStore)

game.Players.PlayerAdded:connect(function(pl)
ds=plds:GetSaveData(pl)

local money = ds:Get("Money") or 0 -- set 0 to default number
-- creates a local money variable that stores money number

-- looping code
while wait(1) do -- every second
money = money + 1 -- add 1 to the money variable
ds:Set("Money", money) -- store it as the save data
end

end)
Report Abuse
ShikasCloud is not online. ShikasCloud
Joined: 18 Nov 2014
Total Posts: 221
15 Jul 2016 09:07 PM
Hi speed.And thanks I'll try to see if it works.
Report Abuse
ShikasCloud is not online. ShikasCloud
Joined: 18 Nov 2014
Total Posts: 221
15 Jul 2016 10:34 PM
ugh its hard I want it to save a specific value not make one.
Report Abuse
SpeedySeat is online. SpeedySeat
Joined: 06 Jul 2011
Total Posts: 3048
15 Jul 2016 11:02 PM
you are allowed to ds:Set most value types.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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