generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Anyway I can make this faster?

Previous Thread :: Next Thread 
DracoTrainingMaster is not online. DracoTrainingMaster
Top 100 Poster
Joined: 14 Oct 2006
Total Posts: 524
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
DracoTrainingMaster is not online. DracoTrainingMaster
Top 100 Poster
Joined: 14 Oct 2006
Total Posts: 524
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
ninjaknight101 is not online. ninjaknight101
Joined: 04 Apr 2011
Total Posts: 1281
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
DracoTrainingMaster is not online. DracoTrainingMaster
Top 100 Poster
Joined: 14 Oct 2006
Total Posts: 524
25 Nov 2014 10:30 PM
It's because the item does not exist.
Report Abuse
BothAngles is not online. BothAngles
Joined: 01 Dec 2011
Total Posts: 9604
25 Nov 2014 10:40 PM
Too many requests
Report Abuse
DracoTrainingMaster is not online. DracoTrainingMaster
Top 100 Poster
Joined: 14 Oct 2006
Total Posts: 524
26 Nov 2014 01:09 AM
Can someone tell me how to fix the error please?
Report Abuse
BothAngles is not online. BothAngles
Joined: 01 Dec 2011
Total Posts: 9604
26 Nov 2014 01:15 AM
Not trying to send 1000000 requests maybe?
Report Abuse
DracoTrainingMaster is not online. DracoTrainingMaster
Top 100 Poster
Joined: 14 Oct 2006
Total Posts: 524
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
ForeverTaIl is not online. ForeverTaIl
Joined: 10 Dec 2011
Total Posts: 114486
04 Jul 2017 12:19 PM
no way


105k posts
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image