|
| 26 Dec 2014 08:42 PM |
The script just keeps on waiting and waiting. I'm guessing the data just never loads?
local DataStore = game:GetService("DataStoreService"):GetDataStore("DemolitionStats")
game.Players.PlayerAdded:connect(function(player)
player:WaitForDataReady() -- Doesn't get past this line print("Getting Ready") -- Never prints wait()
This isn't the full script, but everything works up until the line:player:WaitForDataReady(). No idea how to fix this. Wrong function? |
|
|
| Report Abuse |
|
|
|
| 26 Dec 2014 08:45 PM |
| WaitForDataReady is only for DataPersistence. DataStores are saved to the server, so you do not need to wait for the player to be ready to load from. |
|
|
| Report Abuse |
|
|
| |
|