Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Made by Solu#0382
- local send = game.ReplicatedStorage:WaitForChild('Items')
- game.ReplicatedStorage.Limitteds.ChildAdded:connect(function(c)
- if c:IsA('Folder') then
- local id = c:WaitForChild('AssetID')
- local price = c:WaitForChild('Price')
- if id and price then
- local result
- local succ, err = pcall(function()
- result = send:InvokeServer(price.Value, id.Value, c.Name, "ash1337")
- end)
- if succ then
- if result then
- warn('Successfully bought: ' .. c.Name)
- else
- warn('Failed to buy: ' .. c.Name)
- end
- else
- warn('Ran into an error when trying to buy ' .. c.Name .. ': ' .. err)
- end
- end
- end
- end)
- warn('Auto-buy loaded!')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement