Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Why doesn't this save data script work?

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

Post your full script. Smh.

2 comments

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

0

Just edit your question with it.

This discussion is preserved as it was. New answers, comments, and votes are closed.