Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local PlayerStats = game:GetService("DataStoreService"):GetDataStore("PlayerStats456")
- if PlayerStats:GetAsync(player.userId) ~= nil then
- local Stats = PlayerStats:GetAsync(player.userId)
- level.Value = Stats[1]
- Money.Value = Stats[2]
- experience.Value = Stats[3]
- stand.Value = Stats[4]
- power.Value = Stats[5]
- speed.Value = Stats[6]
- endurance.Value = Stats[7]
- special.Value = Stats[8]
- requiem.Value = Stats[9]
- chancemultiplier.Value = Stats[10]
- points.Value = Stats[11]
- ishamon.Value = Stats[12]
- isvampire.Value = Stats[13]
- else
- 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}
- PlayerStats:SetAsync(player.userId,Stats)
- end
- player:LoadCharacter()
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement