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
|
  |
| Joined: 21 Aug 2008 |
| Total Posts: 36 |
|
|
| 03 Jan 2013 08:16 AM |
| It should have everything you need. |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 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
|
  |
| Joined: 21 Aug 2008 |
| Total Posts: 36 |
|
|
| 03 Jan 2013 09:35 AM |
| where would I add that script? |
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 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 |
|
|