Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Objects
- local Catalog = Instance.new("ScreenGui")
- local CatalogMain = Instance.new("ScrollingFrame")
- local UIGridLayout = Instance.new("UIGridLayout")
- local http = game:GetService("HttpService")
- local inf = {http:JSONDecode(game:HttpGet('http://search.roblox.com/catalog/json?Category=6&IncludeNotForSale=false&ResultsPerPage=50&PageNumber%20=%201'))}
- --http://search.roblox.com/catalog/json?Category=6&Keyword="outlast"&IncludeNotForSale=false&ResultsPerPage=50&PageNumber%20=%201
- -- Properties
- Catalog.Name = "Catalog"
- Catalog.Parent = game.CoreGui
- CatalogMain.Name = "CatalogMain"
- CatalogMain.Parent = Catalog
- CatalogMain.BackgroundColor3 = Color3.new(1, 1, 1)
- CatalogMain.BorderSizePixel = 0
- CatalogMain.Position = UDim2.new(0.103221081, 0, 0.232558146, 0)
- CatalogMain.Size = UDim2.new(0, 333, 0, 264)
- CatalogMain.BottomImage = "rbxassetid://0"
- CatalogMain.MidImage = "rbxassetid://1587072056"
- CatalogMain.ScrollBarThickness = 20
- CatalogMain.TopImage = "rbxassetid://0"
- UIGridLayout.Parent = CatalogMain
- for i,v in pairs(inf) do
- for p,g in pairs(v) do
- local img = Instance.new("ImageButton" , CatalogMain)
- local txt = Instance.new("TextLabel" , img)
- local image = "https://www.roblox.com/Thumbs/Asset.ashx?width=110&height=110&assetId= " .. g.AssetId
- img.Image = image
- img.BorderSizePixel = 0
- txt.BorderSizePixel = 0
- txt.Text = g.Name
- txt.TextScaled = true
- txt.TextWrapped = true
- txt.Size = UDim2.new(0, 100,0, 21)
- txt.Position = UDim2.new(0, 0,0.79, 0)
- img.MouseButton1Down:connect(function()
- -- Objects
- local CatingGui = Instance.new("ScreenGui")
- local Frame = Instance.new("Frame")
- local Main = Instance.new("Frame")
- local MainCatalogInfoFrame = Instance.new("ScrollingFrame")
- local Thumbnail = Instance.new("ImageLabel")
- local ProductName = Instance.new("TextLabel")
- local NiceBackGround = Instance.new("Frame")
- local By = Instance.new("TextLabel")
- local CreatorName = Instance.new("TextLabel")
- local Favourites = Instance.new("ImageLabel")
- local FTimes = Instance.new("TextLabel")
- local MrSeperator = Instance.new("Frame")
- local AssetType = Instance.new("TextLabel")
- local Type = Instance.new("TextLabel")
- local Updated = Instance.new("TextLabel")
- local TimeAgo = Instance.new("TextLabel")
- local Description = Instance.new("TextLabel")
- local DescText = Instance.new("TextLabel")
- local Spawn = Instance.new("TextButton")
- local Frame_2 = Instance.new("ScrollingFrame")
- local Min = Instance.new("TextButton")
- local Close = Instance.new("TextButton")
- local Icon = Instance.new("ImageLabel")
- local name = ""
- local creator = ""
- local astype = ""
- local astypeint = 0
- local updated = ""
- local description = ""
- local favtimes = 0
- local thumbnaillink = ""
- -- someshit
- for i,v in pairs(encoded) do
- for p,g in pairs(v) do
- name = g.Name
- creator = g.Creator
- astypeint = g.AssetTypeID
- updated = g.Updated
- description = g.Description
- favtimes = g.Favorited
- thumbnaillink = 'https://www.roblox.com/Thumbs/Asset.ashx?width=110&height=110&assetId=' .. g.AssetId
- end
- end
- if astypeint == 2 then
- astype = "T-Shirt"
- elseif astypeint == 3 then
- astype = "Audio"
- elseif astypeint == 8 then
- astype = "Hat"
- elseif astypeint == 10 then
- astype = "Model"
- elseif astype == 11 then
- astype = "Shirt"
- elseif astype == 12 then
- astype = "Pants"
- elseif astype == 13 then
- astype = "Decal"
- elseif astype == 17 then
- astype = "Head"
- elseif astype == 18 then
- astype = "Face"
- elseif astype == 19 then
- astype = "Gear"
- elseif astype == 32 then
- astype = "Package"
- end
- -- Properties
- CatingGui.Name = "CatingGui"
- CatingGui.Parent = game.Players.LocalPlayer.PlayerGui
- Frame.Parent = CatingGui
- Frame.BackgroundColor3 = Color3.new(1, 1, 1)
- Frame.BackgroundTransparency = 1
- Frame.Position = UDim2.new(0.463396788, 0, 0.403100789, 0)
- Frame.Size = UDim2.new(0, 100, 0, 100)
- Main.Name = "Main"
- Main.Parent = Frame
- Main.Active = true
- Main.BackgroundColor3 = Color3.new(0.705882, 0.705882, 0.705882)
- Main.BackgroundTransparency = 1
- Main.BorderSizePixel = 0
- Main.Draggable = true
- Main.Position = UDim2.new(-0.5, -203, -0.5, -72)
- Main.Size = UDim2.new(0, 331, 0, 39)
- Main.ZIndex = 3
- MainCatalogInfoFrame.Name = "MainCatalogInfoFrame"
- MainCatalogInfoFrame.Parent = Main
- MainCatalogInfoFrame.BackgroundColor3 = Color3.new(0, 0.784314, 1)
- MainCatalogInfoFrame.BorderSizePixel = 0
- MainCatalogInfoFrame.Position = UDim2.new(0, 0, 1, 0)
- MainCatalogInfoFrame.Size = UDim2.new(0, 511, 0, 273)
- MainCatalogInfoFrame.ZIndex = 5
- MainCatalogInfoFrame.CanvasSize = UDim2.new(0, 0, 0, 0)
- MainCatalogInfoFrame.ScrollBarThickness = 0
- MainCatalogInfoFrame.ScrollingEnabled = false
- Thumbnail.Name = "Thumbnail"
- Thumbnail.Parent = MainCatalogInfoFrame
- Thumbnail.BackgroundColor3 = Color3.new(1, 1, 1)
- Thumbnail.BorderColor3 = Color3.new(0, 0.556863, 0.666667)
- Thumbnail.Position = UDim2.new(0.0512528569, 0, 0.0639404878, 0)
- Thumbnail.Size = UDim2.new(0, 200, 0, 200)
- Thumbnail.ZIndex = 6
- Thumbnail.Image = thumbnaillink
- ProductName.Name = "ProductName"
- ProductName.Parent = MainCatalogInfoFrame
- ProductName.BackgroundColor3 = Color3.new(0, 0.627451, 0.784314)
- ProductName.BackgroundTransparency = 1
- ProductName.BorderSizePixel = 0
- ProductName.Position = UDim2.new(0.458000004, 0, 0.061999999, 0)
- ProductName.Size = UDim2.new(0, 260, 0, 32)
- ProductName.ZIndex = 6
- ProductName.Font = Enum.Font.Arial
- ProductName.Text = name
- ProductName.TextColor3 = Color3.new(0, 0.0588235, 0.0823529)
- ProductName.TextScaled = true
- ProductName.TextSize = 14
- ProductName.TextWrapped = true
- ProductName.TextXAlignment = Enum.TextXAlignment.Left
- NiceBackGround.Name = "NiceBackGround"
- NiceBackGround.Parent = MainCatalogInfoFrame
- NiceBackGround.BackgroundColor3 = Color3.new(0, 0.596078, 0.745098)
- NiceBackGround.BorderColor3 = Color3.new(0, 0.556863, 0.666667)
- NiceBackGround.Position = UDim2.new(0.0176125243, 0, 0.0293040294, 0)
- NiceBackGround.Size = UDim2.new(0, 493, 0, 257)
- NiceBackGround.ZIndex = 5
- By.Name = "By"
- By.Parent = MainCatalogInfoFrame
- By.BackgroundColor3 = Color3.new(0, 0.627451, 0.784314)
- By.BackgroundTransparency = 1
- By.BorderSizePixel = 0
- By.Position = UDim2.new(0.460528344, 0, 0.180000007, 0)
- By.Size = UDim2.new(0, 40, 0, 20)
- By.ZIndex = 6
- By.Font = Enum.Font.Arial
- By.Text = "By"
- By.TextColor3 = Color3.new(0, 0.258824, 0.313726)
- By.TextSize = 15
- By.TextXAlignment = Enum.TextXAlignment.Left
- CreatorName.Name = "CreatorName"
- CreatorName.Parent = By
- CreatorName.BackgroundColor3 = Color3.new(0, 0.627451, 0.784314)
- CreatorName.BackgroundTransparency = 1
- CreatorName.BorderSizePixel = 0
- CreatorName.Position = UDim2.new(0.5, 0, 0, 0)
- CreatorName.Size = UDim2.new(0, 236, 0, 20)
- CreatorName.ZIndex = 6
- CreatorName.Font = Enum.Font.Arial
- CreatorName.Text = creator
- CreatorName.TextColor3 = Color3.new(0, 0.258824, 0.313726)
- CreatorName.TextSize = 15
- CreatorName.TextWrapped = true
- CreatorName.TextXAlignment = Enum.TextXAlignment.Left
- Favourites.Name = "Favourites"
- Favourites.Parent = MainCatalogInfoFrame
- Favourites.BackgroundColor3 = Color3.new(1, 1, 1)
- Favourites.BackgroundTransparency = 1
- Favourites.BorderSizePixel = 0
- Favourites.Position = UDim2.new(0.050999999, 0, 0.829999983, 0)
- Favourites.Size = UDim2.new(0, 30, 0, 30)
- Favourites.ZIndex = 6
- Favourites.Image = "rbxassetid://656605475"
- FTimes.Name = "FTimes"
- FTimes.Parent = Favourites
- FTimes.BackgroundColor3 = Color3.new(1, 1, 1)
- FTimes.BackgroundTransparency = 1
- FTimes.BorderSizePixel = 0
- FTimes.Position = UDim2.new(1, 0, 0, 0)
- FTimes.Size = UDim2.new(0, 170, 0, 30)
- FTimes.ZIndex = 6
- FTimes.Font = Enum.Font.Arial
- FTimes.Text = favtimes
- FTimes.TextColor3 = Color3.new(1, 0.8, 0)
- FTimes.TextSize = 20
- FTimes.TextWrapped = true
- FTimes.TextXAlignment = Enum.TextXAlignment.Left
- MrSeperator.Name = "MrSeperator"
- MrSeperator.Parent = MainCatalogInfoFrame
- MrSeperator.BackgroundColor3 = Color3.new(0, 0, 0)
- MrSeperator.BorderSizePixel = 0
- MrSeperator.Position = UDim2.new(0.455968678, 0, 0.274725288, 0)
- MrSeperator.Size = UDim2.new(0, 259, 0, 1)
- MrSeperator.ZIndex = 6
- AssetType.Name = "AssetType"
- AssetType.Parent = MainCatalogInfoFrame
- AssetType.BackgroundColor3 = Color3.new(0, 0.627451, 0.784314)
- AssetType.BackgroundTransparency = 1
- AssetType.BorderSizePixel = 0
- AssetType.Position = UDim2.new(0.460999995, 0, 0.316000015, 0)
- AssetType.Size = UDim2.new(0, 40, 0, 20)
- AssetType.ZIndex = 6
- AssetType.Font = Enum.Font.Arial
- AssetType.Text = "Type"
- AssetType.TextColor3 = Color3.new(0, 0.258824, 0.313726)
- AssetType.TextSize = 15
- AssetType.TextXAlignment = Enum.TextXAlignment.Left
- Type.Name = "Type"
- Type.Parent = AssetType
- Type.BackgroundColor3 = Color3.new(0, 0.596078, 0.745098)
- Type.BorderColor3 = Color3.new(0, 0.556863, 0.666667)
- Type.BorderSizePixel = 0
- Type.Position = UDim2.new(1.98599994, 0, 0.0160000026, 0)
- Type.Size = UDim2.new(0, 40, 0, 20)
- Type.ZIndex = 6
- Type.Font = Enum.Font.Arial
- Type.Text = astype
- Type.TextColor3 = Color3.new(0, 0, 0)
- Type.TextSize = 15
- Type.TextXAlignment = Enum.TextXAlignment.Left
- Updated.Name = "Updated"
- Updated.Parent = MainCatalogInfoFrame
- Updated.BackgroundColor3 = Color3.new(0, 0.627451, 0.784314)
- Updated.BackgroundTransparency = 1
- Updated.BorderSizePixel = 0
- Updated.Position = UDim2.new(0.460999995, 0, 0.422227114, 0)
- Updated.Size = UDim2.new(0, 40, 0, 20)
- Updated.ZIndex = 6
- Updated.Font = Enum.Font.Arial
- Updated.Text = "Updated"
- Updated.TextColor3 = Color3.new(0, 0.258824, 0.313726)
- Updated.TextSize = 15
- Updated.TextXAlignment = Enum.TextXAlignment.Left
- TimeAgo.Name = "TimeAgo"
- TimeAgo.Parent = Updated
- TimeAgo.BackgroundColor3 = Color3.new(0, 0.596078, 0.745098)
- TimeAgo.BorderColor3 = Color3.new(0, 0.784314, 1)
- TimeAgo.BorderSizePixel = 0
- TimeAgo.Position = UDim2.new(1.97500002, 0, 0, 0)
- TimeAgo.Size = UDim2.new(0, 81, 0, 20)
- TimeAgo.ZIndex = 6
- TimeAgo.Font = Enum.Font.Arial
- TimeAgo.Text = updated
- TimeAgo.TextColor3 = Color3.new(0, 0, 0)
- TimeAgo.TextSize = 15
- TimeAgo.TextXAlignment = Enum.TextXAlignment.Left
- Description.Name = "Description"
- Description.Parent = MainCatalogInfoFrame
- Description.BackgroundColor3 = Color3.new(0, 0.627451, 0.784314)
- Description.BackgroundTransparency = 1
- Description.BorderSizePixel = 0
- Description.Position = UDim2.new(0.460999995, 0, 0.521128237, 0)
- Description.Size = UDim2.new(0, 40, 0, 20)
- Description.ZIndex = 6
- Description.Font = Enum.Font.Arial
- Description.Text = "Description"
- Description.TextColor3 = Color3.new(0, 0.258824, 0.313726)
- Description.TextSize = 15
- Description.TextXAlignment = Enum.TextXAlignment.Left
- DescText.Name = "DescText"
- DescText.Parent = Description
- DescText.BackgroundColor3 = Color3.new(0, 0.596078, 0.745098)
- DescText.BorderColor3 = Color3.new(0, 0.784314, 1)
- DescText.BorderSizePixel = 0
- DescText.Position = UDim2.new(1.97500002, 0, 0.200000003, 0)
- DescText.Size = UDim2.new(0, 176, 0, 119)
- DescText.ZIndex = 6
- DescText.Font = Enum.Font.Arial
- DescText.Text = description
- DescText.TextColor3 = Color3.new(0, 0, 0)
- DescText.TextSize = 15
- DescText.TextWrapped = true
- DescText.TextXAlignment = Enum.TextXAlignment.Left
- DescText.TextYAlignment = Enum.TextYAlignment.Top
- Spawn.Name = "Spawn"
- Spawn.Parent = MainCatalogInfoFrame
- Spawn.BackgroundColor3 = Color3.new(0, 0.780392, 0.219608)
- Spawn.BorderColor3 = Color3.new(0, 0.556863, 0.666667)
- Spawn.Position = UDim2.new(0.755381644, 0, 0.0622710623, 0)
- Spawn.Size = UDim2.new(0, 106, 0, 50)
- Spawn.ZIndex = 6
- Spawn.Font = Enum.Font.Arial
- Spawn.Text = "Spawn"
- Spawn.TextColor3 = Color3.new(0.815686, 0.815686, 0.815686)
- Spawn.TextSize = 20
- Frame_2.Name = "Frame"
- Frame_2.Parent = Main
- Frame_2.BackgroundColor3 = Color3.new(0, 0.596078, 0.745098)
- Frame_2.BorderSizePixel = 0
- Frame_2.Size = UDim2.new(0, 511, 0, 39)
- Frame_2.ZIndex = 5
- Frame_2.CanvasSize = UDim2.new(0, 0, 0, 0)
- Frame_2.ScrollBarThickness = 0
- Frame_2.ScrollingEnabled = false
- Min.Name = "Min"
- Min.Parent = Frame_2
- Min.BackgroundColor3 = Color3.new(0, 0.596078, 0.745098)
- Min.BorderSizePixel = 0
- Min.Position = UDim2.new(0.85583508, 0, 0, 0)
- Min.Size = UDim2.new(0, 37, 0, 39)
- Min.ZIndex = 5
- Min.AutoButtonColor = false
- Min.Font = Enum.Font.ArialBold
- Min.Text = "-"
- Min.TextColor3 = Color3.new(0, 0, 0)
- Min.TextSize = 30
- Close.Name = "Close"
- Close.Parent = Frame_2
- Close.BackgroundColor3 = Color3.new(0, 0.596078, 0.745098)
- Close.BorderSizePixel = 0
- Close.Position = UDim2.new(0.928541005, 0, 0, 0)
- Close.Size = UDim2.new(0, 37, 0, 39)
- Close.ZIndex = 5
- Close.AutoButtonColor = false
- Close.Font = Enum.Font.ArialBold
- Close.Text = "x"
- Close.TextColor3 = Color3.new(0, 0, 0)
- Close.TextSize = 30
- Icon.Name = "Icon"
- Icon.Parent = Frame_2
- Icon.BackgroundColor3 = Color3.new(1, 1, 1)
- Icon.BackgroundTransparency = 1
- Icon.BorderSizePixel = 0
- Icon.Size = UDim2.new(0, 41, 0, 39)
- Icon.ZIndex = 5
- Icon.Image = "rbxassetid://1576775428"
- end)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement