for i, data in pairs(leaderstats:GetChildren()) do
	-- player's leaderstats data
end

something like this

im planning to make an autosave tycoon, where when the player purchase something, a value will be inserted in the player's data....im new to scripting and just finished learning the basics...i dont know any other ways to save a tycoon... thank you :D

4 comments

0

Yes, you can. Tables are used quite often for saving large amounts of data. There are multiple YouTube tutorials that can help. I recommend you take a look at one of them to get an idea and get started.

0

thank you :D

0

I can make you a script if you want to

0

no no its okay, im trying myself so i can learn also