Data stores breaking after a few values

So I have a problem where my data store script to save the game saves everything as nil after a certain point. I have tried swapping the data tags but nothing works. Does anyone know why? The number of things I have loaded into the save is 12 is not very many.

Maybe you did Others then IntValue and the name.

!!! NAMES ARE CUSTOM ! !!!

Like my game.

I’ve watched the tutorial and it worked.

Link of it: Button Simulator [Testing place OPENED FOREVER] - Roblox

Example of a script:

game.Players.PlayerAdded:Connect(function(plr)-- basically redirects you to the player here
	local s = Instance.new("Folder", plr)
	s.Name = "Stats" -- it will show your cash and stuff in the leaderboard

	local cash = Instance.new("NumberValue",s) -- cash stat
	cash.Name = "Cash"
	cash.Value = 0
	local multi = Instance.new("NumberValue",s) -- multi stat
	multi.Name = "Multiplier"
	multi.Value = 1
	local reb = Instance.new("NumberValue",s) -- rebirth stat
	reb.Name = "Rebirth"
	reb.Value = 1
end

For stuff like a shop purchase I was saving it as a bool value. For stuff like money I did int values.


image

Can you post the datastore script?

Here is the saving script: local detector = workspace.Saverelated.SavingStuff.Green.ProximityPromptlocal - Pastebin.com

And here is the loading script: local detector = workspace.Saverelated.SavingStuff.Blue.ProximityPromptlocal D - Pastebin.com

Everything from there works fine, but after the soda machine save everything just loads in as Null

i have no clue how but when I set any extra data loads to the top of the list it works fine!

1 Like