|
| 25 Nov 2014 10:01 PM |
I just made it, it's not to good but works I just need it to run faster without a crash, if that's possible.
local idStart = 34399425 local idStop = math.huge
for i = idStart,idStop do local GetGears = game:GetService('MarketplaceService'):GetProductInfo(i) if(GetGears.AssetTypeId == 19) then Gear = Instance.new("NumberValue", workspace.Gears) Gear.Name = GetGears.Name Gear.Value = GetGears.AssetId print(GetGears.Name.." added!") end wait() end |
|
|
| Report Abuse |
|
|
|
| 25 Nov 2014 10:04 PM |
Also, how can I fish this error I get after a few seconds?
20:03:06.201 - MarketplaceService:getProductInfo() failed because HTTP 503 (Please retry after few minutes) 20:03:06.203 - Script 'Workspace.Script', Line 5 20:03:06.203 - Stack End |
|
|
| Report Abuse |
|
|
|
| 25 Nov 2014 10:08 PM |
| A few things, I would suggest coroutines, but chances it would simply make your code run slower as it has to spin up new threads but you still should try it in chunks. Another thing, the HTTP 503 might because you're requesting too many things from the server at one time or that item no longer exists. |
|
|
| Report Abuse |
|
|
|
| 25 Nov 2014 10:30 PM |
| It's because the item does not exist. |
|
|
| Report Abuse |
|
|
| |
|
|
| 26 Nov 2014 01:09 AM |
| Can someone tell me how to fix the error please? |
|
|
| Report Abuse |
|
|
|
| 26 Nov 2014 01:15 AM |
| Not trying to send 1000000 requests maybe? |
|
|
| Report Abuse |
|
|
|
| 26 Nov 2014 03:55 AM |
I had a script somewhat like this same concept a year or so ago that did this exact thing I am doing here but it was the same wait time. It never errored like that. There has to be a way to check if it's sending to many at a time and if so slow down then speed back up or something... |
|
|
| Report Abuse |
|
|
| |
|