Advertisement
ERROR_CODE

ScriptBlox

Oct 19th, 2023 (edited)
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.88 KB | None | 0 0
  1. local ScreenGui = Instance.new("ScreenGui")
  2. local ScriptBloxFrame = Instance.new("Frame")
  3. local TextBoxScriptSearch = Instance.new("TextBox")
  4. local scriptBloxFrameUICorner = Instance.new("UICorner")
  5. local HttpService = game:GetService("HttpService")
  6. local TextBoxScriptSearchUICorner = Instance.new("UICorner")
  7. local results = 0
  8. local universalresults = 0
  9. ScreenGui.Parent = game.CoreGui
  10.  
  11. ScriptBloxFrame.Parent = ScreenGui
  12. ScriptBloxFrame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  13. ScriptBloxFrame.Position = UDim2.new(0.1, 0, 0.1, 0)
  14. ScriptBloxFrame.LayoutOrder = 5
  15. ScriptBloxFrame.Size = UDim2.new(0, 455, 0, 290)
  16.  
  17. ScriptBloxFrameUICorner.Parent = ScriptBloxFrame
  18.  
  19. TextBoxScriptSearch.Name = "ChatBox"
  20. TextBoxScriptSearch.Parent = ChatFrame1
  21. TextBoxScriptSearch.BackgroundColor3 = Color3.new(255, 255, 255)
  22. TextBoxScriptSearch.Position = UDim2.new(0.05, 0, 0.79, 0)
  23. TextBoxScriptSearch.Size = UDim2.new(0, 355, 0, 35)
  24. TextBoxScriptSearch.Font = Enum.Font.Code
  25. TextBoxScriptSearch.FontSize = Enum.FontSize.Size18
  26. TextBoxScriptSearch.Text = "Script"
  27. TextBoxScriptSearch.TextColor3 = Color3.new(0, 0, 0)
  28. TextBoxScriptSearch.TextSize = 15
  29. TextBoxScriptSearch.TextXAlignment = Enum.TextXAlignment.Left
  30. TextBoxScriptSearch.TextWrapped = true
  31.  
  32. TextBoxScriptSearchUICorner.Parent = TextBoxScriptSearch
  33.  
  34. local page = 1
  35. for _, v in pairs(game:GetService("HttpService"):JSONDecode(game:HttpGet("https://www.scriptblox.com/api/script/search?q=" ..TextBoxScriptSearch.Text.."&page="..page))) do
  36. for z,c in pairs(v['scripts']) do
  37. task.wait(0.1)
  38. if getgenv().showuniversal == false then
  39. if c['game']['name'] ~= "Universal Script 📌" then
  40. results = results + 1
  41. if c['isPatched'] then
  42. patchedresults = patchedresults + 1
  43. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement