Advertisement
Navarone19_CH

Buy Button

Aug 23rd, 2020
12,715
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. local RequiredCash = 100
  2. local player = game.Players.LocalPlayer
  3.  
  4. script.Parent.MouseClick:Connect(function(player)
  5. if player.leaderstats.Cash.Value >= RequiredCash then
  6. player.leaderstats.Cash.Value = player.leaderstats.Cash.Value -100
  7. local random = math.random(1,1)
  8. print(random)
  9.  
  10. if random == 1 then
  11. local Medkit = game.ServerStorage.Tools["A"]:Clone()
  12. local Name = game.ServerStorage.Tools["A"].Name
  13. Medkit.Parent = player.Backpack
  14. end
  15. end
  16. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement