Advertisement
Ilkailka

Untitled

Apr 20th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.72 KB | None | 0 0
  1. -- Objects
  2.  
  3. local Catalog = Instance.new("ScreenGui")
  4. local CatalogMain = Instance.new("ScrollingFrame")
  5. local UIGridLayout = Instance.new("UIGridLayout")
  6. local http = game:GetService("HttpService")
  7. local inf = {http:JSONDecode(game:HttpGet('http://search.roblox.com/catalog/json?Category=6&IncludeNotForSale=false&ResultsPerPage=50&PageNumber%20=%201'))}
  8. --http://search.roblox.com/catalog/json?Category=6&Keyword="outlast"&IncludeNotForSale=false&ResultsPerPage=50&PageNumber%20=%201
  9.  
  10. -- Properties
  11.  
  12. Catalog.Name = "Catalog"
  13. Catalog.Parent = game.CoreGui
  14.  
  15. CatalogMain.Name = "CatalogMain"
  16. CatalogMain.Parent = Catalog
  17. CatalogMain.BackgroundColor3 = Color3.new(1, 1, 1)
  18. CatalogMain.BorderSizePixel = 0
  19. CatalogMain.Position = UDim2.new(0.103221081, 0, 0.232558146, 0)
  20. CatalogMain.Size = UDim2.new(0, 333, 0, 264)
  21. CatalogMain.BottomImage = "rbxassetid://0"
  22. CatalogMain.MidImage = "rbxassetid://1587072056"
  23. CatalogMain.ScrollBarThickness = 20
  24. CatalogMain.TopImage = "rbxassetid://0"
  25.  
  26. UIGridLayout.Parent = CatalogMain
  27.  
  28. for i,v in pairs(inf) do
  29. for p,g in pairs(v) do
  30. local img = Instance.new("ImageButton" , CatalogMain)
  31. local txt = Instance.new("TextLabel" , img)
  32. local image = "https://www.roblox.com/Thumbs/Asset.ashx?width=110&height=110&assetId= " .. g.AssetId
  33. img.Image = image
  34. img.BorderSizePixel = 0
  35.  
  36. txt.BorderSizePixel = 0
  37. txt.Text = g.Name
  38. txt.TextScaled = true
  39. txt.TextWrapped = true
  40. txt.Size = UDim2.new(0, 100,0, 21)
  41. txt.Position = UDim2.new(0, 0,0.79, 0)
  42.  
  43. img.MouseButton1Down:connect(function()
  44. -- Objects
  45.  
  46. local CatingGui = Instance.new("ScreenGui")
  47. local Frame = Instance.new("Frame")
  48. local Main = Instance.new("Frame")
  49. local MainCatalogInfoFrame = Instance.new("ScrollingFrame")
  50. local Thumbnail = Instance.new("ImageLabel")
  51. local ProductName = Instance.new("TextLabel")
  52. local NiceBackGround = Instance.new("Frame")
  53. local By = Instance.new("TextLabel")
  54. local CreatorName = Instance.new("TextLabel")
  55. local Favourites = Instance.new("ImageLabel")
  56. local FTimes = Instance.new("TextLabel")
  57. local MrSeperator = Instance.new("Frame")
  58. local AssetType = Instance.new("TextLabel")
  59. local Type = Instance.new("TextLabel")
  60. local Updated = Instance.new("TextLabel")
  61. local TimeAgo = Instance.new("TextLabel")
  62. local Description = Instance.new("TextLabel")
  63. local DescText = Instance.new("TextLabel")
  64. local Spawn = Instance.new("TextButton")
  65. local Frame_2 = Instance.new("ScrollingFrame")
  66. local Min = Instance.new("TextButton")
  67. local Close = Instance.new("TextButton")
  68. local Icon = Instance.new("ImageLabel")
  69. local name = ""
  70. local creator = ""
  71. local astype = ""
  72. local astypeint = 0
  73. local updated = ""
  74. local description = ""
  75. local favtimes = 0
  76. local thumbnaillink = ""
  77.  
  78.  
  79. -- someshit
  80.  
  81. for i,v in pairs(encoded) do
  82. for p,g in pairs(v) do
  83. name = g.Name
  84. creator = g.Creator
  85. astypeint = g.AssetTypeID
  86. updated = g.Updated
  87. description = g.Description
  88. favtimes = g.Favorited
  89. thumbnaillink = 'https://www.roblox.com/Thumbs/Asset.ashx?width=110&height=110&assetId=' .. g.AssetId
  90. end
  91. end
  92.  
  93. if astypeint == 2 then
  94. astype = "T-Shirt"
  95. elseif astypeint == 3 then
  96. astype = "Audio"
  97. elseif astypeint == 8 then
  98. astype = "Hat"
  99. elseif astypeint == 10 then
  100. astype = "Model"
  101. elseif astype == 11 then
  102. astype = "Shirt"
  103. elseif astype == 12 then
  104. astype = "Pants"
  105. elseif astype == 13 then
  106. astype = "Decal"
  107. elseif astype == 17 then
  108. astype = "Head"
  109. elseif astype == 18 then
  110. astype = "Face"
  111. elseif astype == 19 then
  112. astype = "Gear"
  113. elseif astype == 32 then
  114. astype = "Package"
  115. end
  116.  
  117. -- Properties
  118.  
  119. CatingGui.Name = "CatingGui"
  120. CatingGui.Parent = game.Players.LocalPlayer.PlayerGui
  121.  
  122. Frame.Parent = CatingGui
  123. Frame.BackgroundColor3 = Color3.new(1, 1, 1)
  124. Frame.BackgroundTransparency = 1
  125. Frame.Position = UDim2.new(0.463396788, 0, 0.403100789, 0)
  126. Frame.Size = UDim2.new(0, 100, 0, 100)
  127.  
  128. Main.Name = "Main"
  129. Main.Parent = Frame
  130. Main.Active = true
  131. Main.BackgroundColor3 = Color3.new(0.705882, 0.705882, 0.705882)
  132. Main.BackgroundTransparency = 1
  133. Main.BorderSizePixel = 0
  134. Main.Draggable = true
  135. Main.Position = UDim2.new(-0.5, -203, -0.5, -72)
  136. Main.Size = UDim2.new(0, 331, 0, 39)
  137. Main.ZIndex = 3
  138.  
  139. MainCatalogInfoFrame.Name = "MainCatalogInfoFrame"
  140. MainCatalogInfoFrame.Parent = Main
  141. MainCatalogInfoFrame.BackgroundColor3 = Color3.new(0, 0.784314, 1)
  142. MainCatalogInfoFrame.BorderSizePixel = 0
  143. MainCatalogInfoFrame.Position = UDim2.new(0, 0, 1, 0)
  144. MainCatalogInfoFrame.Size = UDim2.new(0, 511, 0, 273)
  145. MainCatalogInfoFrame.ZIndex = 5
  146. MainCatalogInfoFrame.CanvasSize = UDim2.new(0, 0, 0, 0)
  147. MainCatalogInfoFrame.ScrollBarThickness = 0
  148. MainCatalogInfoFrame.ScrollingEnabled = false
  149.  
  150. Thumbnail.Name = "Thumbnail"
  151. Thumbnail.Parent = MainCatalogInfoFrame
  152. Thumbnail.BackgroundColor3 = Color3.new(1, 1, 1)
  153. Thumbnail.BorderColor3 = Color3.new(0, 0.556863, 0.666667)
  154. Thumbnail.Position = UDim2.new(0.0512528569, 0, 0.0639404878, 0)
  155. Thumbnail.Size = UDim2.new(0, 200, 0, 200)
  156. Thumbnail.ZIndex = 6
  157. Thumbnail.Image = thumbnaillink
  158.  
  159. ProductName.Name = "ProductName"
  160. ProductName.Parent = MainCatalogInfoFrame
  161. ProductName.BackgroundColor3 = Color3.new(0, 0.627451, 0.784314)
  162. ProductName.BackgroundTransparency = 1
  163. ProductName.BorderSizePixel = 0
  164. ProductName.Position = UDim2.new(0.458000004, 0, 0.061999999, 0)
  165. ProductName.Size = UDim2.new(0, 260, 0, 32)
  166. ProductName.ZIndex = 6
  167. ProductName.Font = Enum.Font.Arial
  168. ProductName.Text = name
  169. ProductName.TextColor3 = Color3.new(0, 0.0588235, 0.0823529)
  170. ProductName.TextScaled = true
  171. ProductName.TextSize = 14
  172. ProductName.TextWrapped = true
  173. ProductName.TextXAlignment = Enum.TextXAlignment.Left
  174.  
  175. NiceBackGround.Name = "NiceBackGround"
  176. NiceBackGround.Parent = MainCatalogInfoFrame
  177. NiceBackGround.BackgroundColor3 = Color3.new(0, 0.596078, 0.745098)
  178. NiceBackGround.BorderColor3 = Color3.new(0, 0.556863, 0.666667)
  179. NiceBackGround.Position = UDim2.new(0.0176125243, 0, 0.0293040294, 0)
  180. NiceBackGround.Size = UDim2.new(0, 493, 0, 257)
  181. NiceBackGround.ZIndex = 5
  182.  
  183. By.Name = "By"
  184. By.Parent = MainCatalogInfoFrame
  185. By.BackgroundColor3 = Color3.new(0, 0.627451, 0.784314)
  186. By.BackgroundTransparency = 1
  187. By.BorderSizePixel = 0
  188. By.Position = UDim2.new(0.460528344, 0, 0.180000007, 0)
  189. By.Size = UDim2.new(0, 40, 0, 20)
  190. By.ZIndex = 6
  191. By.Font = Enum.Font.Arial
  192. By.Text = "By"
  193. By.TextColor3 = Color3.new(0, 0.258824, 0.313726)
  194. By.TextSize = 15
  195. By.TextXAlignment = Enum.TextXAlignment.Left
  196.  
  197. CreatorName.Name = "CreatorName"
  198. CreatorName.Parent = By
  199. CreatorName.BackgroundColor3 = Color3.new(0, 0.627451, 0.784314)
  200. CreatorName.BackgroundTransparency = 1
  201. CreatorName.BorderSizePixel = 0
  202. CreatorName.Position = UDim2.new(0.5, 0, 0, 0)
  203. CreatorName.Size = UDim2.new(0, 236, 0, 20)
  204. CreatorName.ZIndex = 6
  205. CreatorName.Font = Enum.Font.Arial
  206. CreatorName.Text = creator
  207. CreatorName.TextColor3 = Color3.new(0, 0.258824, 0.313726)
  208. CreatorName.TextSize = 15
  209. CreatorName.TextWrapped = true
  210. CreatorName.TextXAlignment = Enum.TextXAlignment.Left
  211.  
  212. Favourites.Name = "Favourites"
  213. Favourites.Parent = MainCatalogInfoFrame
  214. Favourites.BackgroundColor3 = Color3.new(1, 1, 1)
  215. Favourites.BackgroundTransparency = 1
  216. Favourites.BorderSizePixel = 0
  217. Favourites.Position = UDim2.new(0.050999999, 0, 0.829999983, 0)
  218. Favourites.Size = UDim2.new(0, 30, 0, 30)
  219. Favourites.ZIndex = 6
  220. Favourites.Image = "rbxassetid://656605475"
  221.  
  222. FTimes.Name = "FTimes"
  223. FTimes.Parent = Favourites
  224. FTimes.BackgroundColor3 = Color3.new(1, 1, 1)
  225. FTimes.BackgroundTransparency = 1
  226. FTimes.BorderSizePixel = 0
  227. FTimes.Position = UDim2.new(1, 0, 0, 0)
  228. FTimes.Size = UDim2.new(0, 170, 0, 30)
  229. FTimes.ZIndex = 6
  230. FTimes.Font = Enum.Font.Arial
  231. FTimes.Text = favtimes
  232. FTimes.TextColor3 = Color3.new(1, 0.8, 0)
  233. FTimes.TextSize = 20
  234. FTimes.TextWrapped = true
  235. FTimes.TextXAlignment = Enum.TextXAlignment.Left
  236.  
  237. MrSeperator.Name = "MrSeperator"
  238. MrSeperator.Parent = MainCatalogInfoFrame
  239. MrSeperator.BackgroundColor3 = Color3.new(0, 0, 0)
  240. MrSeperator.BorderSizePixel = 0
  241. MrSeperator.Position = UDim2.new(0.455968678, 0, 0.274725288, 0)
  242. MrSeperator.Size = UDim2.new(0, 259, 0, 1)
  243. MrSeperator.ZIndex = 6
  244.  
  245. AssetType.Name = "AssetType"
  246. AssetType.Parent = MainCatalogInfoFrame
  247. AssetType.BackgroundColor3 = Color3.new(0, 0.627451, 0.784314)
  248. AssetType.BackgroundTransparency = 1
  249. AssetType.BorderSizePixel = 0
  250. AssetType.Position = UDim2.new(0.460999995, 0, 0.316000015, 0)
  251. AssetType.Size = UDim2.new(0, 40, 0, 20)
  252. AssetType.ZIndex = 6
  253. AssetType.Font = Enum.Font.Arial
  254. AssetType.Text = "Type"
  255. AssetType.TextColor3 = Color3.new(0, 0.258824, 0.313726)
  256. AssetType.TextSize = 15
  257. AssetType.TextXAlignment = Enum.TextXAlignment.Left
  258.  
  259. Type.Name = "Type"
  260. Type.Parent = AssetType
  261. Type.BackgroundColor3 = Color3.new(0, 0.596078, 0.745098)
  262. Type.BorderColor3 = Color3.new(0, 0.556863, 0.666667)
  263. Type.BorderSizePixel = 0
  264. Type.Position = UDim2.new(1.98599994, 0, 0.0160000026, 0)
  265. Type.Size = UDim2.new(0, 40, 0, 20)
  266. Type.ZIndex = 6
  267. Type.Font = Enum.Font.Arial
  268. Type.Text = astype
  269. Type.TextColor3 = Color3.new(0, 0, 0)
  270. Type.TextSize = 15
  271. Type.TextXAlignment = Enum.TextXAlignment.Left
  272.  
  273. Updated.Name = "Updated"
  274. Updated.Parent = MainCatalogInfoFrame
  275. Updated.BackgroundColor3 = Color3.new(0, 0.627451, 0.784314)
  276. Updated.BackgroundTransparency = 1
  277. Updated.BorderSizePixel = 0
  278. Updated.Position = UDim2.new(0.460999995, 0, 0.422227114, 0)
  279. Updated.Size = UDim2.new(0, 40, 0, 20)
  280. Updated.ZIndex = 6
  281. Updated.Font = Enum.Font.Arial
  282. Updated.Text = "Updated"
  283. Updated.TextColor3 = Color3.new(0, 0.258824, 0.313726)
  284. Updated.TextSize = 15
  285. Updated.TextXAlignment = Enum.TextXAlignment.Left
  286.  
  287. TimeAgo.Name = "TimeAgo"
  288. TimeAgo.Parent = Updated
  289. TimeAgo.BackgroundColor3 = Color3.new(0, 0.596078, 0.745098)
  290. TimeAgo.BorderColor3 = Color3.new(0, 0.784314, 1)
  291. TimeAgo.BorderSizePixel = 0
  292. TimeAgo.Position = UDim2.new(1.97500002, 0, 0, 0)
  293. TimeAgo.Size = UDim2.new(0, 81, 0, 20)
  294. TimeAgo.ZIndex = 6
  295. TimeAgo.Font = Enum.Font.Arial
  296. TimeAgo.Text = updated
  297. TimeAgo.TextColor3 = Color3.new(0, 0, 0)
  298. TimeAgo.TextSize = 15
  299. TimeAgo.TextXAlignment = Enum.TextXAlignment.Left
  300.  
  301. Description.Name = "Description"
  302. Description.Parent = MainCatalogInfoFrame
  303. Description.BackgroundColor3 = Color3.new(0, 0.627451, 0.784314)
  304. Description.BackgroundTransparency = 1
  305. Description.BorderSizePixel = 0
  306. Description.Position = UDim2.new(0.460999995, 0, 0.521128237, 0)
  307. Description.Size = UDim2.new(0, 40, 0, 20)
  308. Description.ZIndex = 6
  309. Description.Font = Enum.Font.Arial
  310. Description.Text = "Description"
  311. Description.TextColor3 = Color3.new(0, 0.258824, 0.313726)
  312. Description.TextSize = 15
  313. Description.TextXAlignment = Enum.TextXAlignment.Left
  314.  
  315. DescText.Name = "DescText"
  316. DescText.Parent = Description
  317. DescText.BackgroundColor3 = Color3.new(0, 0.596078, 0.745098)
  318. DescText.BorderColor3 = Color3.new(0, 0.784314, 1)
  319. DescText.BorderSizePixel = 0
  320. DescText.Position = UDim2.new(1.97500002, 0, 0.200000003, 0)
  321. DescText.Size = UDim2.new(0, 176, 0, 119)
  322. DescText.ZIndex = 6
  323. DescText.Font = Enum.Font.Arial
  324. DescText.Text = description
  325. DescText.TextColor3 = Color3.new(0, 0, 0)
  326. DescText.TextSize = 15
  327. DescText.TextWrapped = true
  328. DescText.TextXAlignment = Enum.TextXAlignment.Left
  329. DescText.TextYAlignment = Enum.TextYAlignment.Top
  330.  
  331. Spawn.Name = "Spawn"
  332. Spawn.Parent = MainCatalogInfoFrame
  333. Spawn.BackgroundColor3 = Color3.new(0, 0.780392, 0.219608)
  334. Spawn.BorderColor3 = Color3.new(0, 0.556863, 0.666667)
  335. Spawn.Position = UDim2.new(0.755381644, 0, 0.0622710623, 0)
  336. Spawn.Size = UDim2.new(0, 106, 0, 50)
  337. Spawn.ZIndex = 6
  338. Spawn.Font = Enum.Font.Arial
  339. Spawn.Text = "Spawn"
  340. Spawn.TextColor3 = Color3.new(0.815686, 0.815686, 0.815686)
  341. Spawn.TextSize = 20
  342.  
  343. Frame_2.Name = "Frame"
  344. Frame_2.Parent = Main
  345. Frame_2.BackgroundColor3 = Color3.new(0, 0.596078, 0.745098)
  346. Frame_2.BorderSizePixel = 0
  347. Frame_2.Size = UDim2.new(0, 511, 0, 39)
  348. Frame_2.ZIndex = 5
  349. Frame_2.CanvasSize = UDim2.new(0, 0, 0, 0)
  350. Frame_2.ScrollBarThickness = 0
  351. Frame_2.ScrollingEnabled = false
  352.  
  353. Min.Name = "Min"
  354. Min.Parent = Frame_2
  355. Min.BackgroundColor3 = Color3.new(0, 0.596078, 0.745098)
  356. Min.BorderSizePixel = 0
  357. Min.Position = UDim2.new(0.85583508, 0, 0, 0)
  358. Min.Size = UDim2.new(0, 37, 0, 39)
  359. Min.ZIndex = 5
  360. Min.AutoButtonColor = false
  361. Min.Font = Enum.Font.ArialBold
  362. Min.Text = "-"
  363. Min.TextColor3 = Color3.new(0, 0, 0)
  364. Min.TextSize = 30
  365.  
  366. Close.Name = "Close"
  367. Close.Parent = Frame_2
  368. Close.BackgroundColor3 = Color3.new(0, 0.596078, 0.745098)
  369. Close.BorderSizePixel = 0
  370. Close.Position = UDim2.new(0.928541005, 0, 0, 0)
  371. Close.Size = UDim2.new(0, 37, 0, 39)
  372. Close.ZIndex = 5
  373. Close.AutoButtonColor = false
  374. Close.Font = Enum.Font.ArialBold
  375. Close.Text = "x"
  376. Close.TextColor3 = Color3.new(0, 0, 0)
  377. Close.TextSize = 30
  378.  
  379. Icon.Name = "Icon"
  380. Icon.Parent = Frame_2
  381. Icon.BackgroundColor3 = Color3.new(1, 1, 1)
  382. Icon.BackgroundTransparency = 1
  383. Icon.BorderSizePixel = 0
  384. Icon.Size = UDim2.new(0, 41, 0, 39)
  385. Icon.ZIndex = 5
  386. Icon.Image = "rbxassetid://1576775428"
  387.  
  388. end)
  389. end
  390. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement