|
| 17 Apr 2016 07:09 PM |
How does this occur and how do I stop it?
|
|
|
| Report Abuse |
|
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 17 Apr 2016 07:10 PM |
You are doing something too many times.
what are you even doing
post code
|
|
|
| Report Abuse |
|
|
|
| 17 Apr 2016 07:44 PM |
It's in a datastore save/load script
|
|
|
| Report Abuse |
|
|
|
| 18 Apr 2016 02:12 AM |
bump, its kind of annoying and random. it can work fine for hours then ill join once and it happens, and i rejoin to fix it
|
|
|
| Report Abuse |
|
|
vlekje513
|
  |
| Joined: 28 Dec 2010 |
| Total Posts: 9057 |
|
| |
|
Thy_Yuno
|
  |
| Joined: 15 Jul 2014 |
| Total Posts: 239 |
|
| |
|
|
| 18 Apr 2016 11:34 AM |
its really big but alright
-- ---------------------------------------------------------- --Load when they join -- ---------------------------------------------------------- game.Players.PlayerAdded:connect(function(player) repeat wait() until player.leaderstats2 and player:WaitForDataReady() local warriorstats = player.PlayerWarriorData local skinstats = player.PlayerSkinData local playerstats = player.leaderstats2 local configuration = player.Configuration --player's warrior data local v = warriorstats:GetChildren() for f = 1,#v do warriorstats[v[f].Name].Value = game:GetService("DataStoreService"):GetDataStore(v[f].Name):GetAsync(player.userId) or 0 end
--player's skin data local v = skinstats:GetChildren() for f = 1,#v do skinstats[v[f].Name].Value = game:GetService("DataStoreService"):GetDataStore(v[f].Name):GetAsync(player.userId) or 0 end
--player's stats local v = playerstats:GetChildren() for f = 1,#v do playerstats[v[f].Name].Value = game:GetService("DataStoreService"):GetDataStore(v[f].Name):GetAsync(player.userId) or 0 end --Most start with a preferred 0, though some should start with a value if player.leaderstats2.Level.Value == 0 then player.leaderstats2.Level.Value = 1 end if player.leaderstats2.BIcon.Value == 0 then player.leaderstats2.BIcon.Value = 298248573 end
--player's configurations local v = configuration:GetChildren() for f = 1,#v do configuration[v[f].Name].Value = game:GetService("DataStoreService"):GetDataStore(v[f].Name):GetAsync(player.userId) or 0 end end)leaderstats2.BIcon.Value == 0 then player.leaderstats2.BIcon.Value = 298248573 end
--player's configurations local v = configuration:GetChildren() for f = 1,#v do configuration[v[f].Name].Value = game:GetService("DataStoreService"):GetDataStore(v[f].Name):GetAsync(player.userId) or 0 end end)
|
|
|
| Report Abuse |
|
|
| |
|
| |
|
iondriver
|
  |
| Joined: 18 Nov 2012 |
| Total Posts: 757 |
|
|
| 19 Apr 2016 12:37 PM |
| At what line does the error occur? |
|
|
| Report Abuse |
|
|
|
| 19 Apr 2016 01:54 PM |
Occurs here: playerstats[v[f].Name].Value = game:GetService("DataStoreService"):GetDataStore(v[f].Name):GetAsync(player.userId) or 0 end
playerstats has the most to save/load, like 10, if that's a problem? But I looked on wiki and it said GetAsync requests allowed per minute are 60 + #players * 10 which would be 610 with just me being there so I don't think the amount is the problem but idk. warriorstats and skinstats work fine then it get this weird error at playerstats
|
|
|
| Report Abuse |
|
|