|
| 24 May 2015 06:42 PM |
| Why only my stats save, but for everyone else it doesn't. |
|
|
| Report Abuse |
|
|
| |
|
voItages
|
  |
| Joined: 02 Nov 2013 |
| Total Posts: 677 |
|
| |
|
|
| 24 May 2015 06:51 PM |
this saves the stats from "leaderstats" found in player, i receive no errors in the output from this script.
-- save dah stats game.Players.PlayerRemoving:connect(function(player) local datastore = game:GetService("DataStoreService"):GetDataStore(player.Name.."Stats")
local statstorage = player:FindFirstChild("leaderstats"):GetChildren() for i = 1, #statstorage do datastore:SetAsync(statstorage[i].Name, statstorage[i].Value) print("saved data number "..i) end end)
game.Players.PlayerAdded:connect(function(player) local datastore = game:GetService("DataStoreService"):GetDataStore(player.Name.."Stats") player:WaitForChild("leaderstats") wait(1) local stats = player:FindFirstChild("leaderstats"):GetChildren() for i = 1, #stats do stats[i].Value = datastore:GetAsync(stats[i].Name) print("stat numba "..i.." has been found") end end) |
|
|
| Report Abuse |
|
|
| |
|
|
| 27 May 2015 08:29 PM |
| b3, still haven't solved this |
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 28 May 2015 12:32 AM |
| It does save for everyone. How come not? |
|
|
| Report Abuse |
|
|
|
| 28 May 2015 03:58 AM |
Lel dumbo. I've seen this before, it's from a failed datastore guide. But SFBC will help you.
http://www.roblox.com/Forum/ShowPost.aspx?PostID=162506822
Enjoying your stay at the Scripters Forum? Join this! http://www.roblox.com/My/Groups.aspx?gid=2582784 |
|
|
| Report Abuse |
|
|
UgOsMiLy
|
  |
| Joined: 15 Sep 2009 |
| Total Posts: 2095 |
|
|
| 28 May 2015 04:13 AM |
You made a seperate data store for everyone.
Look at this wiki article:
http://wiki.roblox.com/index.php?title=Data_store |
|
|
| Report Abuse |
|
|
Goulstem
|
  |
| Joined: 04 Jul 2012 |
| Total Posts: 7177 |
|
|
| 28 May 2015 04:28 AM |
Lol why'd you make a seperate DataStore for every individual client??
Sillyboi.
Listen to powerhotmail tho c: |
|
|
| Report Abuse |
|
|