|
| 02 Nov 2013 02:50 PM |
PlayerName = script.Parent.Parent.Parent.Parent
while true do wait(0.01) PlayerName:WaitForDataReady() if PlayerName.DataReady then script.Parent.Money.Value = PlayerName:LoadNumber("Money Of "..PlayerName.Name) wait(1) print("Loaded") script.Parent.Save.Disabled = false script.Disabled = true end end |
|
|
| Report Abuse |
|
|
MHebes
|
  |
| Joined: 04 Jan 2013 |
| Total Posts: 2278 |
|
|
| 02 Nov 2013 02:57 PM |
Uh... I'm just gonna rewrite that for you. Also, this can't be a LocalScript.
local player = script.Parent.Parent.Parent.Parent
player:WaitForDataReady() local money = player:LoadNumber("Money Of " .. player.Name) -- Why would you name it that? wait(1) print("Loaded") script.Parent.Save.Disabled = false -- Don't know what this does -- script.Disabled = true <- unnecessary, the script is over. |
|
|
| Report Abuse |
|
|
| |
|
MHebes
|
  |
| Joined: 04 Jan 2013 |
| Total Posts: 2278 |
|
|
| 02 Nov 2013 03:06 PM |
Sorry, forgot a line. Also, show us the line where you're saving the data.
local player = script.Parent.Parent.Parent.Parent
player:WaitForDataReady() local money = player:LoadNumber("Money Of " .. player.Name) if money then script.Parent.Money.Value = money end wait(1) print("Loaded") script.Parent.Save.Disabled = false -- Still don't know what this does |
|
|
| Report Abuse |
|
|
|
| 02 Nov 2013 06:04 PM |
| Thx but i learn it my self. |
|
|
| Report Abuse |
|
|