Advertisement
Soluplayz

Limited Universe Auto Buy Script

Mar 10th, 2019
612
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. -- Made by Solu#0382
  2.  
  3. local send = game.ReplicatedStorage:WaitForChild('Items')
  4.  
  5. game.ReplicatedStorage.Limitteds.ChildAdded:connect(function(c)
  6. if c:IsA('Folder') then
  7. local id = c:WaitForChild('AssetID')
  8. local price = c:WaitForChild('Price')
  9. if id and price then
  10. local result
  11. local succ, err = pcall(function()
  12. result = send:InvokeServer(price.Value, id.Value, c.Name, "ash1337")
  13. end)
  14. if succ then
  15. if result then
  16. warn('Successfully bought: ' .. c.Name)
  17. else
  18. warn('Failed to buy: ' .. c.Name)
  19. end
  20.  
  21. else
  22. warn('Ran into an error when trying to buy ' .. c.Name .. ': ' .. err)
  23. end
  24. end
  25. end
  26. end)
  27.  
  28. warn('Auto-buy loaded!')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement