Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local pastebinUrl = "https://pastebin.com/raw/bB96Xvrb"
- local function fetchData()
- local response = game:HttpGet(pastebinUrl)
- local data = {}
- for line in response:gmatch("[^,]+") do
- local id, name, url = line:match("([^~]+)~([^~]+)~([^~]+)")
- if id and name and url then
- table.insert(data, {id, name, url})
- end
- end
- return data
- end
- local screenGui = Instance.new("ScreenGui")
- screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
- local scrollingFrame = Instance.new("ScrollingFrame")
- scrollingFrame.Size = UDim2.new(0.8, 0, 0.8, 0)
- scrollingFrame.Position = UDim2.new(0.1, 0, 0.1, 0)
- scrollingFrame.CanvasSize = UDim2.new(0, 0, 5, 0)
- scrollingFrame.ScrollBarThickness = 12
- scrollingFrame.Parent = screenGui
- local function updateData()
- scrollingFrame:ClearAllChildren()
- local gridLayout = Instance.new("UIGridLayout")
- gridLayout.CellSize = UDim2.new(1, 0, 0, 50)
- gridLayout.Parent = scrollingFrame
- local data = fetchData()
- for _, item in ipairs(data) do
- local frame = Instance.new("Frame")
- frame.Size = UDim2.new(1, 0, 0, 50)
- frame.BackgroundTransparency = 0.5
- frame.BorderSizePixel = 1
- frame.Parent = scrollingFrame
- local textLabel = Instance.new("TextLabel")
- textLabel.Size = UDim2.new(0.6, 0, 1, 0)
- textLabel.Text = item[2]
- textLabel.BackgroundTransparency = 1
- textLabel.Parent = frame
- local installButton = Instance.new("TextButton")
- installButton.Size = UDim2.new(0.2, 0, 1, 0)
- installButton.Position = UDim2.new(0.6, 0, 0, 0)
- installButton.Text = "Install"
- installButton.Parent = frame
- installButton.MouseButton1Click:Connect(function()
- loadstring(game:HttpGet(item[3]))()
- end)
- local imageLabel = Instance.new("ImageLabel")
- imageLabel.Size = UDim2.new(0.2, 0, 1, 0)
- imageLabel.Position = UDim2.new(0.8, 0, 0, 0)
- imageLabel.Image = "rbxassetid://" .. item[1]
- imageLabel.Parent = frame
- end
- end
- updateData()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement