Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local player = game.player.LocalPlayer:connect(function(player)
- local leaderstats = instance.new("Folder, leaderstats")
- leaderstats.parent = player
- leaderstats.name = leaderstats
- local leaderstats = instance.new("IntValue, points")
- leaderstats.points = "points"
- points.name = points
- points.value = 100
- end()
- game.player.PlayerOnEntered = game.playerOnRemove:Getservice(function(playerOnRemove)
- function Datastore(Datastore)
- end()
- end()
- if player == playerOnRemove then
- end
- if Datastore == playerOnRemove.points then
- end
- local points = game.table[i] for i,v in pairs points
- local for i,v in next pairs Datastore("points", playerOnRemove)
- local Datastore = (game.points[#table[i] in next playerOnremove.points("playerOnRemove, points")(true))
- if Datastore = game.PlayerOnRemove("points, Datastore")
- print("Datastore, playerOnRemoved... data has SAVED! .. / points*")
- Datastore.points = 100
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement