Advertisement
jaydel123

clone tycoon script

Mar 8th, 2019
3,436
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. script.Parent.MouseButton1Click:connect(function()
  2. local RS = game:GetService("ReplicatedStorage")
  3. local item = RS:WaitForChild("Item Name Here")
  4. local price = 0 -- Change Your Price Here
  5. local player = game.Players.LocalPlayer
  6. local stats = player:WaitForChild("leaderstats")
  7.  
  8. if stats.Money.Value == price then -- Change the Money to your Currency Name
  9. stats.Money.Value = stats.Money.Value - price
  10. local cloned = item:Clone()
  11. local cloned2 = item:Clone()
  12. cloned2.Parent = player.Backpack
  13. cloned.Parent = player.StarterGear
  14. end
  15. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement