Advertisement
ERROR_CODE

Installer

Jan 11th, 2025
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.12 KB | None | 0 0
  1. local pastebinUrl = "https://pastebin.com/raw/bB96Xvrb"
  2.  
  3. local function fetchData()
  4.     local response = game:HttpGet(pastebinUrl)
  5.     local data = {}
  6.     for line in response:gmatch("[^,]+") do
  7.         local id, name, url = line:match("([^~]+)~([^~]+)~([^~]+)")
  8.         if id and name and url then
  9.             table.insert(data, {id, name, url})
  10.         end
  11.     end
  12.     return data
  13. end
  14.  
  15. local screenGui = Instance.new("ScreenGui")
  16. screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  17.  
  18. local scrollingFrame = Instance.new("ScrollingFrame")
  19. scrollingFrame.Size = UDim2.new(0.8, 0, 0.8, 0)
  20. scrollingFrame.Position = UDim2.new(0.1, 0, 0.1, 0)
  21. scrollingFrame.CanvasSize = UDim2.new(0, 0, 5, 0)
  22. scrollingFrame.ScrollBarThickness = 12
  23. scrollingFrame.Parent = screenGui
  24.  
  25. local function updateData()
  26.     scrollingFrame:ClearAllChildren()
  27.  
  28.     local gridLayout = Instance.new("UIGridLayout")
  29.     gridLayout.CellSize = UDim2.new(1, 0, 0, 50)
  30.     gridLayout.Parent = scrollingFrame
  31.  
  32.     local data = fetchData()
  33.  
  34.     for _, item in ipairs(data) do
  35.         local frame = Instance.new("Frame")
  36.         frame.Size = UDim2.new(1, 0, 0, 50)
  37.         frame.BackgroundTransparency = 0.5
  38.         frame.BorderSizePixel = 1
  39.         frame.Parent = scrollingFrame
  40.  
  41.         local textLabel = Instance.new("TextLabel")
  42.         textLabel.Size = UDim2.new(0.6, 0, 1, 0)
  43.         textLabel.Text = item[2]
  44.         textLabel.BackgroundTransparency = 1
  45.         textLabel.Parent = frame
  46.  
  47.         local installButton = Instance.new("TextButton")
  48.         installButton.Size = UDim2.new(0.2, 0, 1, 0)
  49.         installButton.Position = UDim2.new(0.6, 0, 0, 0)
  50.         installButton.Text = "Install"
  51.         installButton.Parent = frame
  52.  
  53.         installButton.MouseButton1Click:Connect(function()
  54.             loadstring(game:HttpGet(item[3]))()
  55.         end)
  56.  
  57.         local imageLabel = Instance.new("ImageLabel")
  58.         imageLabel.Size = UDim2.new(0.2, 0, 1, 0)
  59.         imageLabel.Position = UDim2.new(0.8, 0, 0, 0)
  60.         imageLabel.Image = "rbxassetid://" .. item[1]
  61.         imageLabel.Parent = frame
  62.     end
  63. end
  64.  
  65. updateData()
  66.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement