How do I make this work?

game.Players.PlayerAdded:Connect(function(player)

     local leaderstats = Instance.new("Folder")
     leaderstats.Parent = player
    leaderstats.Name = "LeaderStats"

     local Level = Instance.new("IntValue")
     Level.Parent = leaderstats
     Level.Name = "Level"

while wait(60) do
Level.Value += 1
end
end)

Careful with using the Parent argument in Instance.new…
Explanation: PSA: Don't use Instance.new() with parent argument

I fixed up the rest and adding a while do loop which can add the value.