Advertisement
404Coder

Practice code

Mar 18th, 2023
307
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.16 KB | None | 0 0
  1. local player = game.player.LocalPlayer:connect(function(player)
  2.         local leaderstats = instance.new("Folder, leaderstats")
  3.        
  4.         leaderstats.parent = player
  5.         leaderstats.name = leaderstats
  6.        
  7.         local leaderstats = instance.new("IntValue, points")
  8.         leaderstats.points = "points"
  9.         points.name = points
  10.        
  11.         points.value = 100
  12.         end()
  13.    
  14.    
  15.  game.player.PlayerOnEntered = game.playerOnRemove:Getservice(function(playerOnRemove)
  16.             function Datastore(Datastore)
  17.                 end()
  18.             end()
  19.         if player == playerOnRemove then
  20.             end
  21.         if Datastore == playerOnRemove.points then
  22.             end
  23.         local points = game.table[i] for i,v in pairs points
  24.        
  25.         local for i,v in next pairs Datastore("points", playerOnRemove)
  26.         local Datastore = (game.points[#table[i] in next playerOnremove.points("playerOnRemove, points")(true))
  27.         if Datastore = game.PlayerOnRemove("points, Datastore")
  28.            
  29.             print("Datastore, playerOnRemoved... data has SAVED! ..  / points*")
  30.            
  31.             Datastore.points = 100
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement