cdw500
|
  |
| Joined: 11 Jun 2014 |
| Total Posts: 141 |
|
|
| 20 Jun 2014 07:38 AM |
I get this error when i click the button: Data for player not yet loaded, wait for DataReady
But when I add player:WaitForDataReady() the button dos not do anything can anyone help me out?
Here is the script.
local player = script.Parent.Parent.Parent.Parent.Parent
function onClicked() player:WaitForDataReady() player:SaveNumber("Level", player.Values.Level.Value) player:SaveNumber("XP", player.Values.XP.Value) player:SaveNumber("Money", player.Values.Money.Value) player:SaveNumber("Kills", player.Values.Kills.Value) player:SaveNumber("Deaths", player.Values.Deaths.Value) script.Parent.Text = "Game Saved" wait(2) script.Parent.Text = "Save Game" end
script.Parent.MouseButton1Click:connect(onClicked)
|
|
|
| Report Abuse |
|
|
| 20 Jun 2014 09:18 AM |
| I have trouble with DataStore bump. Btw, tell meh if you got it. |
|
|
| Report Abuse |
|
|
| 20 Jun 2014 09:38 AM |
| Are you testing online or in roblox studio? |
|
|
| Report Abuse |
|
cdw500
|
  |
| Joined: 11 Jun 2014 |
| Total Posts: 141 |
|
| |