Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-1

Why doesn't this save data script work?

Asked by
Voial 0
8 years ago

It does not save my progress, I don't know what to do. game.Players.PlayerAdded:connect(function(Player) Player:WaitForDataReady()end) local Key = "value" :LoadNumber(Key) :LoadString(Key) :LoadInstance(Key) game.Players.Added:connect(function(Player) Player:WaitForDataReady() local Score = Player:LoadNumber(Key) if(Key~=nil)then

    end
end
:SaveNumber(Key,Score)
:SaveString(Key,Score)
:SaveInstance(Key,Score)
game.Players.PlayerRemoving:connect(function(Player)
local Score = Player:SaveNumber(Key,Score)end)
local Key = "Value"
game.Players.PlayerAdded;connect(function(Player)
    Player:WaitForDataReady()
    local Score = Player:LoadNumber(Key)print(""..Score)
end)
game.Players.PlayerRemoving:connect(function(Player)
    local Score = Player:SaveNumber(Key,Score)

end)

1 answer

Log in to vote
0
Answered by
awfulszn 394 Moderation Voter
8 years ago

Post your full script. Smh.

0
game.Players.PlayerAdded:connect(function(Player) Player:WaitForDataReady()end) local Key = "value" :LoadNumber(Key) :LoadString(Key) :LoadInstance(Key) game.Players.Added:connect(function(Player) Player:WaitForDataReady() local Score = Player:LoadNumber(Key) if(Key~=nil)then end end :SaveNumber(Key,Score) :SaveString(Key,Score) :SaveInstance(Key,Score) game.Players.PlayerRemo Voial 0 — 8y
0
Just edit your question with it. awfulszn 394 — 8y
Ad

Answer this question