Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- game.Players.PlayerAdded:connect(function(plr)
- local stats = Instance.new('IntValue',plr)
- stats.Name = 'leaderstats'
- local experience = Instance.new('IntValue',stats)
- experience.Name = 'EXP'
- experience.Value = 0
- local level = Instance.new('IntValue', stats)
- level.Name = 'Level'
- level.Value = 0
- experience.Changed:connect(function()
- level.Value = math.floor(experience.Value / 1000)
- end)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement