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