Advertisement
MaxiKaz

Portfel mody

May 6th, 2023
677
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.86 KB | Gaming | 0 0
  1. game.Players.PlayerAdded:Connect(function(gracz)
  2.     local kasa = Bank:GetAsync(gracz.UserId) or 0
  3.     local tablicaNaSerwerze = Instance.new("Folder", game.ServerStorage)
  4.     tablicaNaSerwerze.Name = gracz.Name
  5.     local kasaNaSerwerze = Instance.new("NumberValue", tablicaNaSerwerze)
  6.     kasaNaSerwerze.Name = "Kasa"
  7.     kasaNaSerwerze.Value = kasa
  8.     local tablicaLokalnie = Instance.new("Folder", gracz)
  9.     tablicaLokalnie.Name = "leaderstats"
  10.     local kasaLokalnie = Instance.new("NumberValue", tablicaLokalnie)
  11.     kasaLokalnie.Name = "Kasa"
  12.     kasaLokalnie.Value = kasa
  13.     for i, przycisk in pairs(przyciski:GetChildren()) do
  14.         nowyPrzycisk(przycisk)
  15.     end
  16.     gracz:LoadCharacter()
  17.     kasaNaSerwerze.Changed:Connect(function(liczba)
  18.         kasaLokalnie.Value = liczba
  19.     end)
  20.     while true do
  21.         Bank:SetAsync(gracz.UserId, kasaNaSerwerze.Value)
  22.         print("Kasa zapisana!")
  23.         wait(10)
  24.     end
  25. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement