How do I make this save?

Im not much of a scripter so I thought I would ask how to I make this save?

function onPlayerEntered(newPlayer)

 local stats = Instance.new("IntValue")
 stats.Name = "leaderstats"

 local secs = Instance.new("IntValue")
 secs.Name = "Rep"
 secs.Value = 0


 secs.Parent = stats
 
 stats.Parent = newPlayer

 while true do
  wait(1)
  secs.Value = secs.Value + 1
 end
end

game.Players.ChildAdded:connect(onPlayerEntered)

Anything could help me thanks!

There are many topics on data saving, a search would have yielded results.

e.g:

The thing is im not a scripter, and that meaning I know what it all means I just dont know how to insert it into this script.

You should use DataStore2. How to use DataStore2 - Data Store caching and data loss prevention

I dont know how to add it into the script.

If there is a specific part you don’t understand, you can ask for clarification.

But with that being said, you are not allowed to ask for code on the DevForum.