Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- PointData = jogo: GetService ("DataStoreService"): GetDataStore ("PointData")
- PrestigeData = jogo: GetService ("DataStoreService"): GetDataStore ("PrestigeData")
- game.Players.PlayerAdded: Connect (função (plr)
- LB local = Instance.new ("IntValue")
- LB.Name = "leaderstats"
- local p = Instance.new ("IntValue")
- p.Name = "Pontos"
- p.Value = PointData: GetAsync (plr.userId) ou 0
- local r = Instance.new ("IntValue")
- r.Name = "Prestígio"
- r.Value = PrestigeData: GetAsync (plr.userId) ou 0
- LB.Parent = plr
- p.Parent = LB
- r.Parent = LB
- fim)
- game.Players.PlayerRemoving: Connect (função (plr)
- PointData: SetAsync (plr.userId, plr.leaderstats.Points.Value)
- PrestigeData: SetAsync (plr.userId, plr.leaderstats.Prestige.Value)
- fim)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement