Is there possible to save all the data with one script?

Is there possible to save all the data with one script?
Because I made a folder about all the data in the starterpack.

You most likely could, I have a data save script in ServerScriptService that saves most of the players data.

Like can I use

for i, v in pairs (player.backpack:GetChildren())
If v:IsA(“BoolValue”) or v:IsA(“NumberValue”) then
–SAVE DATA –

I dont think that would work I have never tried that before and that most likely would save values it shouldnt

So how should I do that , should I spam create script and rename it edit it and make it all inside a folder?