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 » Scripters
Home Search
 

Re: :WaitForDataReady() waiting for data forever?

Previous Thread :: Next Thread 
MattDominator is not online. MattDominator
Joined: 20 Oct 2008
Total Posts: 3981
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
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
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
MattDominator is not online. MattDominator
Joined: 20 Oct 2008
Total Posts: 3981
26 Dec 2014 08:50 PM
Thanks man.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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