Advertisement
HowToRoblox

MoneyScript

Nov 9th, 2020
3,891
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.35 KB | None | 0 0
  1. local groupID = 2929563
  2.  
  3.  
  4. game.Players.PlayerAdded:Connect(function(plr)
  5.    
  6.     local ls = Instance.new("Folder")
  7.     ls.Name = "leaderstats"
  8.     ls.Parent = plr
  9.    
  10.     local cash = Instance.new("IntValue")
  11.     cash.Name = "Cash"
  12.     cash.Parent = ls
  13.    
  14.    
  15.     if plr:IsInGroup(groupID) then
  16.        
  17.         plr.leaderstats.Cash.Value = plr.leaderstats.Cash.Value + 100
  18.     end
  19. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement