Alright i have a script that gives +1 to a leaderboard titled “Minutes Played” but i cant find any script that saves it here is the script:
function onPlayerEntered(newPlayer)
local stats = Instance.new("IntValue")
stats.Name = "leaderstats"
local mins = Instance.new("IntValue")
mins.Name = "Minutes Playing"
mins.Value = 0
mins.Parent = stats
stats.Parent = newPlayer
while true do
wait(60)
mins.Value = mins.Value + 1
end
end
game.Players.ChildAdded:connect(onPlayerEntered)