Advertisement
Godofadmin1337

f

Dec 25th, 2019
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. local PlayerStats = game:GetService("DataStoreService"):GetDataStore("PlayerStats456")
  2.  
  3.  
  4.  
  5.  
  6.  
  7. if PlayerStats:GetAsync(player.userId) ~= nil then
  8. local Stats = PlayerStats:GetAsync(player.userId)
  9. level.Value = Stats[1]
  10. Money.Value = Stats[2]
  11. experience.Value = Stats[3]
  12. stand.Value = Stats[4]
  13. power.Value = Stats[5]
  14. speed.Value = Stats[6]
  15. endurance.Value = Stats[7]
  16. special.Value = Stats[8]
  17. requiem.Value = Stats[9]
  18. chancemultiplier.Value = Stats[10]
  19. points.Value = Stats[11]
  20. ishamon.Value = Stats[12]
  21. isvampire.Value = Stats[13]
  22. else
  23. local Stats = {level.Value,money.Value,experience.Value,stand.Value,power.Value,speed.Value,endurance.Value,special.Value,requiem.Value,chancemultiplier.Value,points.Value,ishamon.Value,isvampire.Value}
  24. PlayerStats:SetAsync(player.userId,Stats)
  25. end
  26.  
  27. player:LoadCharacter()
  28.  
  29. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement