Advertisement
Guest User

PlayerDataStore

a guest
Oct 20th, 2014
235
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.25 KB | None | 0 0
  1. -- data
  2. local PlayerDataStore = require(game.ServerScriptService.PlayerDataStore)
  3. local saveData = PlayerDataStore:GetSaveData(player)
  4.  
  5. -- loads data
  6. points.Value = (saveData:Get("Points") or 0)
  7.  
  8. -- saves data
  9. saveData:Set("Points",points.Value)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement