WolfGamesProgrammer

Server Script Transfer Service

Oct 10th, 2023
411
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.39 KB | Source Code | 0 0
  1. function TransferingMoney(player, nick, price)
  2.     if player and nick and price then
  3.         if nick:FindFirstChild("leaderstats") then
  4.             if player.leaderstats.Ru.Value >= tonumber(price)then
  5.                 player.leaderstats.Ru.Value -= tonumber(price)
  6.                 nick.leaderstats.Ru.Value += tonumber(price)
  7.             end
  8.         end
  9.     end
  10. end
  11. game.ReplicatedStorage.events.TransferMoney.OnServerEvent:Connect(TransferingMoney)
Advertisement
Add Comment
Please, Sign In to add comment