Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local I = Instance.new("Part",script)
- I.FormFactor = "Custom"
- I.Size = Vector3.new(20,20,1)
- I.Anchored = true
- I.CFrame = CFrame.new(0,11,0)
- local Screen = Instance.new("SurfaceGui",I)
- Screen.CanvasSize = Vector2.new(1000,1000)
- local Background = Instance.new("Frame",Screen)
- Background.Size = UDim2.new(1,0,1,0)
- Background.BackgroundColor3 = Color3.new(0,0,0)
- T = Instance.new("TextLabel",Background)
- T.Text = "Current ID:"
- T.Size = UDim2.new(1,0,0,20)
- local S = 100
- local UI = {}
- local baseTexture = "http://www.roblox.com/Thumbs/Asset.ashx?format=png&width=%d&height=%d&assetId=%d";
- function GetAssetTexture(aId, w, h)
- if aId == nil or type(aId) ~= "number" or aId%1 ~= 0 then
- error("Bad argument #1 to GetAssetTexture (integer expected, got " .. type(aId) .. ")")
- end
- return baseTexture:format(w or 110, h or 110, aId);
- end
- Assets = {[1]="Image";[2]="T-Shirt";[3]="Audio";[4]="Mesh";[5]="Lua";[6]="HTML";[7]="Text";[8]="Hat";[9]="Place";[10]="Model";[11]="Shirt";[12]="Pants";[13]="Decal";[14]="Head";[15]="Audio";[16]="Avatar";[17]="Head";[18]="Face";[19]="Gear";[20]="";[21]="Badge";[22]="Group Emblem";[23]="";[24]="Animation";[25]="Arms";[26]="Legs";[27]="Torso";[28]="Right Arm";[29]="Left Arm";[30]="Left Leg";[31]="Right Leg";[32]="Package";[33]="YouTubeVideo";[34]="Game Pass";[35]="App";[36]="";[37]="Code";[38]="Plugin";}
- function GetAssetType(N)
- if Assets[N] then
- return Assets[N]
- else
- return ""
- end
- end
- function New(IM,T)
- ypcall(function()
- for i,v in pairs(UI) do
- v.Position = v.Position +UDim2.new(0,S,0,0)
- if v.AbsolutePosition.X+S > Screen.CanvasSize.X then
- v.Position = UDim2.new(0,0,0,v.AbsolutePosition.Y+S)
- end
- if (v.AbsolutePosition.Y+S)-20 > Screen.CanvasSize.Y then
- v:Destroy()
- table.remove(UI,i)
- end
- end
- local N = Instance.new("ImageLabel",Background)
- N.Size = UDim2.new(0,S,0,S)
- N.Position = UDim2.new(0,0,0,20)
- N.BackgroundColor3 = BrickColor.random().Color
- N.Image = GetAssetTexture(IM,S,S)
- local TX = Instance.new("TextLabel",N)
- TX.Size = UDim2.new(1,0,0.2,0)
- TX.Position = UDim2.new(0,0,1-0.2,0)
- TX.Text = T or ""
- TX.TextWrapped = true
- TX.Size = UDim2.new(1,0,0,20)
- N.Changed:connect(function()
- GetAssetTexture(IM,S,S)
- end)
- if not T then
- TX.BackgroundTransparency = 1
- end
- table.insert(UI,N)
- end)
- end
- http = game:GetService("HttpService")
- local ID = http:JSONDecode(http:GetAsync("http://rproxy.tk/catalog/json?SortType=RecentlyUpdated&ResultsPerPage=1&Page=1&IncludeNotForSale=true"))[1].AssetId
- market = game:GetService("MarketplaceService")
- function checkid(id)
- local i
- pcall(function()
- i = market:GetProductInfo(id)
- end)
- return i
- end
- Tim = tick()
- Diff = tick()-Tim
- while wait() do
- Delay(0,function()
- local C = checkid(ID+1)
- if C then
- local R = GetAssetType(C.AssetTypeId)
- ID = ID+1
- if R ~= "Image" and R ~= "Decal" then
- New(ID,tostring(C.Name).."|"..R)
- end
- Diff = tick()-Tim
- Tim = tick()
- end
- end)
- T.Text = "Current ID:"..ID.." New Asset Speed:" ..( (Diff < 1 and math.ceil(1/Diff).." assets per second") or (Diff > 1 and "One asset every "..math.ceil(Diff).." second(s)") or "")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement