Advertisement
Alief_Athallah

Buy Sword Script

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