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: Not all my RPG Stats will save. (Needs script fixing)

Previous Thread :: Next Thread 
haribo686 is not online. haribo686
Joined: 21 Aug 2008
Total Posts: 36
03 Jan 2013 08:16 AM
Ok so in my RPG feel free to go if you need to try understand what it is and stuff heres a link. http://www.roblox.com/Lost-Worlds-%E1%B5%87%E1%B5%89%E1%B5%97%E1%B5%83-place?id=19214875 ok so I will explain inside the players folder there will be stats then within that all the stats for example Woodcutting, Mining and such on also the inventory items and then within the stats it has the XP value But when people leave it only saves the Agility stat and the inventory but not the other stats and I need help fixing that. If you can I would really appreciate it as I can not continue work on the game until this is fixed even if you can hook it up with the save/ and load/ I would be very greatful
Scripts: http://www.roblox.com/RPG-Save-Scripts-Need-Fixing-item?id=102533906
Report Abuse
haribo686 is not online. haribo686
Joined: 21 Aug 2008
Total Posts: 36
03 Jan 2013 08:16 AM
It should have everything you need.
Report Abuse
thedestroyer115 is not online. thedestroyer115
Joined: 19 Dec 2010
Total Posts: 11546
03 Jan 2013 09:14 AM
Don't use .PlayerRemoving. It is unstable, and with the amount of values you need to save plus the :WaitForDataReady() it might not save all the information in time.

Report Abuse
Robertoman is not online. Robertoman
Joined: 10 May 2007
Total Posts: 6369
03 Jan 2013 09:30 AM
Where there is a will, there is a way. Try this. When a player is being added to the game, make their own little spot in your workspace, a model just for them with their info. When a player is being removed from the game, you can just use the save function from the data that is in workspace so it wont require the player to exist to complete the save. For instance:

PlayerKeep=Instance.new'Model'
PlayerKeep.Name,PlayerKeep.Parent='Players',workspace
Game.Players.PlayerAdded:connect(function(p)
--Here you can create all the stats like leaderstats and whatnot...
backup=Instance.new'Model'
backup.Name,backup.Parent=p.Name,workspace.Players
end)
Game.Players.PlayerRemoving:connect(function(p)
y=workspace.Players[p.Name]
p.LEADERSTATS:Clone().Parent=y
--Now you can save their stats treating y as their player If you need to save their weapons and everything too, then move those to the model also.
end)

The idea is to copy all the items you need from the player and put them in another location so you can save their information without their player being present.
Report Abuse
haribo686 is not online. haribo686
Joined: 21 Aug 2008
Total Posts: 36
03 Jan 2013 09:35 AM
where would I add that script?
Report Abuse
Robertoman is not online. Robertoman
Joined: 10 May 2007
Total Posts: 6369
03 Jan 2013 09:38 AM
Uhm... That isn't a script to use, that is just an example of what you would need to do so you have time to save the data when someone leaves. IF worst comes to shove, you could constantly be saving and updating the in-game data so that it will come as close as possible to keeping their records.
Report Abuse
haribo686 is not online. haribo686
Joined: 21 Aug 2008
Total Posts: 36
03 Jan 2013 09:54 AM
Could you possibley help me do that? I would be willing to pay abit as I need serious help with it
Report Abuse
Robertoman is not online. Robertoman
Joined: 10 May 2007
Total Posts: 6369
06 Jan 2013 11:59 AM
I can't help without your script that saves/loads information as I'm not going to make you a new script completely, but I can help you with what you have.
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