Advertisement
Alief_Athallah

Buy Knife Script

May 30th, 2020
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.36 KB | None | 0 0
  1. -- Put this LocalScript inside Buy Knife TextButton --
  2.  
  3. Player = game.Players.LocalPlayer
  4.  
  5. script.Parent.MouseButton1Click:Connect(function()
  6.            
  7.     if Player.leaderstats.Money.Value >= 35 then
  8.         Player.leaderstats.Money.Value = Player.leaderstats.Money.Value - 35
  9.    
  10.         game.ReplicatedStorage.Knife:clone().Parent = Player:WaitForChild("Backpack")
  11.  
  12.     end    
  13. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement