Troubles with leaderstats

No, This will make it work:

game.Players.PlayerAdded:Connect(function(Plr)
       local stats = Instance.new("Folder", plr)
       stats.Name = "leaderstats"

       local ValueName = Instance.new("IntValue", stats) -- Will insert a intvalue into stats.
       ValueName.Name = "ValueName" -- Will name the value
       ValueName.Value = 0 -- How much the player starts off with.

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

The script you’re showing is a time leaderstat, right? I want a script that creates a leaderstat with the name I want, and the value I want. It shouldn’t be a number.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.