Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local DataStore = game:GetService("DataStoreService"):GetDataStore(Dta)
- local Player = game:GetService("Players")
- Player.PlayerAdded:connect(function(plr)
- local leaderboard = Instance.new("IntValue", plr)
- leaderboard.Name = "leaderstats"
- local points = Instance.new("IntValue",leaderboard)
- points.Name = "Points"
- local level = Instance.new("IntValue",leaderboard)
- level.Name = "Level"
- Points.Changed:connect(function()
- level.Value = loints.Value/100
- end)
- end)
- Player.PlayerRemoving:connect(function(plr)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement