Advertisement
ERROR_CODE

Script Serach

Jul 10th, 2023
292
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 35.37 KB | None | 0 0
  1. getgenv().showuniversal = false
  2.  
  3. local Mercury = loadstring(game:HttpGet("https://raw.githubusercontent.com/deeeity/mercury-lib/master/src.lua"))()
  4. local GUI = Mercury:Create{
  5. Name = "ScriptBlox/RbxScript Powered Script Searcher",
  6. Size = UDim2.fromOffset(600, 400),
  7. Theme = Mercury.Themes.Dark,
  8. Link = "https://scriptblox.com"
  9. }
  10. GUI:Prompt{
  11. Followup = false,
  12. Title = "Info!",
  13. Text = "Update Log: Changed ScriptBlox Logo to winter themed one",
  14. Buttons = {
  15. ok = function()
  16.  
  17. end;
  18. ok = function()
  19.  
  20. end;
  21. }
  22. }
  23. local HttpService = game:GetService("HttpService")
  24.  
  25.  
  26. local Abbreviations = {"k", "M", "B", "T", "Qa", "Qn", "Sx", "Sp", "Oc", "N"}
  27.  
  28. local function formatNumber(Number, Decimals)
  29. return math.floor(((Number < 1 and Number) or math.floor(Number) / 10 ^ (math.log10(Number) - math.log10(Number) % 3)) * 10 ^ (Decimals or 3)) / 10 ^ (Decimals or 3)..(Abbreviations[math.floor(math.log10(Number) / 3)] or "")
  30. end
  31.  
  32. local getfakeasset = getcustomasset or getsynasset
  33.  
  34. local function checkifimageexists(url)
  35. local success,f = pcall(function()
  36. local img = game:HttpGet("https://process.filestackapi.com/AhTgLagciQByzXpFGRI0Az/output=format:png/"..url)
  37. end)
  38. if not success then
  39. return false
  40. else
  41. return true
  42. end
  43. end
  44. local function save_image(url)
  45. local path = "UniversalSearcher/"
  46. local img = game:HttpGet("https://process.filestackapi.com/AhTgLagciQByzXpFGRI0Az/output=format:png/"..url)
  47. local uuid = HttpService:GenerateGUID(false):gsub("-", ""):lower()
  48. writefile(path .. uuid .. ".png", img)
  49. return getfakeasset(path .. uuid .. ".png")
  50. end
  51. if game.CoreGui:FindFirstChild("info") then
  52. game.CoreGui["info"]:Destroy()
  53. end
  54.  
  55. if isfolder("UniversalSearcher") then
  56. delfolder("UniversalSearcher")
  57. end
  58.  
  59. makefolder("UniversalSearcher")
  60.  
  61. local info = Instance.new("ScreenGui")
  62. local main = Instance.new("Frame")
  63. local img = Instance.new("ImageLabel")
  64. local verimg = Instance.new("ImageLabel")
  65. local desc = Instance.new("TextBox")
  66. local download = Instance.new("TextLabel")
  67. local title = Instance.new("TextLabel")
  68. local close = Instance.new("TextButton")
  69. local UICorner = Instance.new("UICorner")
  70.  
  71. --Properties:
  72.  
  73. info.Name = "info"
  74. info.Parent = game.CoreGui
  75. info.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  76. info.ResetOnSpawn = false
  77.  
  78. main.Name = "main"
  79. main.Parent = info
  80. main.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  81. main.BackgroundTransparency = 0.400
  82. main.Size = UDim2.new(1.11738741, 0, 1, 0)
  83.  
  84. img.Name = "img"
  85. img.Parent = main
  86. img.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  87. img.BorderSizePixel = 0
  88. img.Position = UDim2.new(0.258523524, 0, 0.16042484, 0)
  89. img.Size = UDim2.new(0.370301604, 0, 0.447574109, 0)
  90. img.Image = "rbxasset://textures/ui/GuiImagePlaceholder.png"
  91.  
  92. verimg.Visible = false
  93. verimg.Name = "verimg"
  94. verimg.Parent = main
  95. verimg.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  96. verimg.BorderSizePixel = 0
  97. verimg.Position = UDim2.new(0.257906318, 0, 0.558144404)
  98. verimg.Size = UDim2.new(0.02,0,0.025, 0)
  99. verimg.BackgroundTransparency = 1
  100. verimg.Image = "rbxasset://textures/ui/GuiImagePlaceholder.png"
  101.  
  102.  
  103. desc.Name = "desc"
  104. desc.Parent = main
  105. desc.ClearTextOnFocus = false
  106. desc.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  107. desc.BorderSizePixel = 0
  108. desc.Position = UDim2.new(0.258523524, 0, 0.6079988, 0)
  109. desc.Size = UDim2.new(0.370301634, 0, 0.285781249, 0)
  110. desc.Font = Enum.Font.Ubuntu
  111. desc.Text = "1"
  112. desc.TextColor3 = Color3.fromRGB(255, 255, 255)
  113. desc.TextScaled = true
  114. desc.TextWrapped = true
  115. desc.TextXAlignment = Enum.TextXAlignment.Left
  116. desc.TextYAlignment = Enum.TextYAlignment.Top
  117.  
  118. download.Name = "download"
  119. download.Parent = main
  120. download.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  121. download.BackgroundTransparency = 0.500
  122. download.Position = UDim2.new(0.505391181, 0, 0.581144404, 0)
  123. download.Size = UDim2.new(0.123433866, 0, 0.0255756583, 0)
  124. download.Font = Enum.Font.Roboto
  125. download.TextColor3 = Color3.fromRGB(0, 0, 0)
  126. download.TextScaled = true
  127. download.TextSize = 22.000
  128. download.TextWrapped = true
  129.  
  130. title.Name = "title"
  131. title.Parent = main
  132. title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  133. title.BackgroundTransparency = 0.500
  134. title.Position = UDim2.new(0.257906318, 0, 0.581144404, 0)
  135. title.Size = UDim2.new(0.247484878, 0, 0.0255756583, 0)
  136. title.Font = Enum.Font.Roboto
  137. title.TextColor3 = Color3.fromRGB(0, 0, 0)
  138. title.TextScaled = true
  139. title.TextSize = 22.000
  140. title.TextWrapped = true
  141.  
  142. close.Name = "close"
  143. close.Parent = main
  144. close.BackgroundColor3 = Color3.fromRGB(255, 127, 127)
  145. close.Position = UDim2.new(0.61667639, 0, 0.154762692, 0)
  146. close.Size = UDim2.new(0, 27, 0, 27)
  147. close.Font = Enum.Font.SourceSans
  148. close.Text = "X"
  149. close.TextColor3 = Color3.fromRGB(0, 0, 0)
  150. close.TextScaled = true
  151. close.TextSize = 14.000
  152. close.TextWrapped = true
  153.  
  154. UICorner.CornerRadius = UDim.new(0, 128)
  155. UICorner.Parent = close
  156.  
  157. info.Enabled = false
  158. close.MouseButton1Click:Connect(function()
  159. info.Enabled = false
  160. end)
  161.  
  162.  
  163. local Tab = GUI:Tab{
  164. Name = "ScriptBlox",
  165. Icon = save_image("https://cdn.discordapp.com/icons/954089188825894943/6b54fd0e58e6a110e07cf1da6ebbe2ae.png?size=160")
  166. }
  167. local Tab2 = GUI:Tab{
  168. Name = "RbxScript",
  169. Icon = save_image("https://rbxscript.com/images/logo.png")
  170. }
  171.  
  172. Tab:Textbox{
  173. Name = "Search Bar ScriptBlox",
  174. Callback = function(Value)
  175. if Value == "" then return end
  176. spawn(function()
  177. for z,x in pairs(game:GetService("CoreGui").ScreenGui:GetChildren()) do
  178. for i,v in pairs(x:GetDescendants()) do
  179. pcall(function()
  180. if v:IsA("TextButton") and v.TextLabel.Text ~= "Show Universal Scripts" and v.TextLabel.Text ~= "Show More then 20 Scripts (May Cause Lags)" and v.Parent.Name == "ScrollingFrame" and not v:FindFirstChild("TextBox") then
  181. for c,b in pairs(v.Parent:GetChildren()) do
  182. if b:IsA("TextButton") and b:FindFirstChild("TextBox") and b.TextLabel.Text == "Search Bar ScriptBlox" then
  183. v:Destroy()
  184. end
  185. end
  186. end
  187. end)
  188. end
  189. end
  190. end)
  191. local results = 0
  192. local universalresults = 0
  193. local patchedresults = 0
  194. local name = game:GetService('HttpService'):UrlEncode(Value)
  195. local page = 1
  196. for _, v in pairs(game:GetService("HttpService"):JSONDecode(game:HttpGet("https://www.scriptblox.com/api/script/search?q=" ..name.."&page="..page))) do
  197. for z,c in pairs(v['scripts']) do
  198. task.wait(0.1)
  199. if getgenv().showuniversal == false then
  200. if c['game']['name'] ~= "Universal Script 📌" then
  201. results = results + 1
  202. if c['isPatched'] then
  203. patchedresults = patchedresults + 1
  204. end
  205. local MyDropdown = Tab:Dropdown{
  206. Name = c['game']['name'].." ["..c['title'] .. '] \nViews: ' .. formatNumber(c['views']),
  207. StartingText = "Select...",
  208. Description = nil,
  209. Items = {"Execute","Preview Script","Copy Game Link","Copy Script"},
  210. Callback = function(value)
  211. if value == "Copy Game Link" then
  212. setclipboard("https://www.roblox.com/games/"..c['game']['gameId'])
  213. GUI:Prompt{
  214. Followup = false,
  215. Title = "Info!",
  216. Text = "Game Link Has Been Copied To Your Clipboard",
  217. Buttons = {
  218. ok = function()
  219.  
  220. end;
  221. ok = function()
  222.  
  223. end;
  224. }
  225. }
  226. elseif value == "Copy Script" then
  227. setclipboard(c['script'])
  228. GUI:Prompt{
  229. Followup = false,
  230. Title = "Info!",
  231. Text = "Script Has Been Copied To Your Clipboard",
  232. Buttons = {
  233. ok = function()
  234.  
  235. end;
  236. ok = function()
  237.  
  238. end;
  239. }
  240. }
  241. elseif value == "Preview Script" then
  242. if not info.Enabled then
  243. local newapi = game:GetService("HttpService"):JSONDecode(game:HttpGet("https://www.scriptblox.com/api/script/"..c['slug']))
  244. if string.find(c['game']['imageUrl'],"/images") then
  245. if checkifimageexists("https://scriptblox.com"..c['game']['imageUrl']) then
  246. img.Image = save_image("https://scriptblox.com"..c['game']['imageUrl'])
  247. end
  248. else
  249. if checkifimageexists(c['game']['imageUrl']) then
  250. img.Image = save_image(c['game']['imageUrl'])
  251. end
  252. end
  253. desc.Text = newapi['script']['features']
  254. download.Text = formatNumber(c['views']) .. " Views and "..game:GetService("HttpService"):JSONDecode(game:HttpGet("https://www.scriptblox.com/api/script/"..c['slug']))['script']['likeCount'].." Likes"
  255. if newapi['script']['verified'] == true then
  256. verimg.Visible = true
  257. title.Text = c['title'].." Made By "..newapi['script']['owner']['username']
  258. else
  259. verimg.Visible = false
  260. title.Text = c['title'].." Made By "..newapi['script']['owner']['username']
  261. end
  262. info.Enabled = true
  263. end
  264. elseif value == "Execute" then
  265. if c['isPatched'] then
  266. GUI:Prompt{
  267. Followup = false,
  268. Title = "Warning!",
  269. Text = "This script is patched would you like to use it?",
  270. Buttons = {
  271. yes = function()
  272. loadstring(c['script'])()
  273. end;
  274. no = function()
  275.  
  276. end;
  277. }
  278. }
  279. else
  280. loadstring(c['script'])()
  281. end
  282. end
  283. end
  284. }
  285. end
  286. else
  287. results = results + 1
  288. if c['game']['name'] == "Universal Script 📌" then
  289. universalresults = universalresults + 1
  290. end
  291. if c['isPatched'] then
  292. patchedresults = patchedresults + 1
  293. end
  294. local MyDropdown = Tab:Dropdown{
  295. Name = c['game']['name'].." ["..c['title'] .. '] \nViews: ' .. formatNumber(c['views']),
  296. StartingText = "Select...",
  297. Description = nil,
  298. Items = {"Execute","Preview Script","Copy Game Link","Copy Script"},
  299. Callback = function(value)
  300. if value == "Copy Game Link" then
  301. setclipboard("https://www.roblox.com/games/"..c['game']['gameId'])
  302. GUI:Prompt{
  303. Followup = false,
  304. Title = "Info!",
  305. Text = "Game Link Has Been Copied To Your Clipboard",
  306. Buttons = {
  307. ok = function()
  308.  
  309. end;
  310. ok = function()
  311.  
  312. end;
  313. }
  314. }
  315. elseif value == "Copy Script" then
  316. setclipboard(c['script'])
  317. GUI:Prompt{
  318. Followup = false,
  319. Title = "Info!",
  320. Text = "Script Has Been Copied To Your Clipboard",
  321. Buttons = {
  322. ok = function()
  323.  
  324. end;
  325. ok = function()
  326.  
  327. end;
  328. }
  329. }
  330. elseif value == "Preview Script" then
  331. if not info.Enabled then
  332. local newapi = game:GetService("HttpService"):JSONDecode(game:HttpGet("https://www.scriptblox.com/api/script/"..c['slug']))
  333. if string.find(c['game']['imageUrl'],"/images") then
  334. if checkifimageexists("https://scriptblox.com"..c['game']['imageUrl']) then
  335. img.Image = save_image("https://scriptblox.com"..c['game']['imageUrl'])
  336. end
  337. else
  338. if checkifimageexists(c['game']['imageUrl']) then
  339. img.Image = save_image(c['game']['imageUrl'])
  340. end
  341. end
  342. desc.Text = newapi['script']['features']
  343. download.Text = formatNumber(c['views']) .. " Views and "..newapi['script']['likeCount'].." Likes"
  344. if newapi['script']['verified'] == true then
  345. verimg.Visible = true
  346. title.Text = c['title'].." Made By "..newapi['script']['owner']['username']
  347. else
  348. verimg.Visible = false
  349. title.Text = c['title'].." Made By "..newapi['script']['owner']['username']
  350. end
  351. info.Enabled = true
  352. end
  353. elseif value == "Execute" then
  354. if c['isPatched'] then
  355. GUI:Prompt{
  356. Followup = false,
  357. Title = "Warning!",
  358. Text = "This script is patched would you like to use it?",
  359. Buttons = {
  360. yes = function()
  361. loadstring(c['script'])()
  362. end;
  363. no = function()
  364.  
  365. end;
  366. }
  367. }
  368. else
  369. loadstring(c['script'])()
  370. end
  371. end
  372. end
  373. }
  374. end
  375. end
  376. end
  377. if results ~= 0 and getgenv().showmore then
  378. repeat
  379. page = page + 1
  380. local currentresults = 0
  381. local successed, returnedData = xpcall(function()
  382. -- protected code
  383. for _, v in pairs(game:GetService("HttpService"):JSONDecode(game:HttpGet("https://www.scriptblox.com/api/script/search?q=" ..name.."&page="..page))) do
  384. for z,c in pairs(v['scripts']) do
  385. if getgenv().showuniversal == false then
  386. if c['game']['name'] ~= "Universal Script 📌" then
  387. results = results + 1
  388. currentresults = currentresults + 1
  389. if c['isPatched'] then
  390. patchedresults = patchedresults + 1
  391. end
  392. local MyDropdown = Tab:Dropdown{
  393. Name = c['game']['name'].." ["..c['title'] .. '] \nViews: ' .. formatNumber(c['views']),
  394. StartingText = "Select...",
  395. Description = nil,
  396. Items = {"Execute","Preview Script","Copy Game Link","Copy Script"},
  397. Callback = function(value)
  398. if value == "Copy Game Link" then
  399. setclipboard("https://www.roblox.com/games/"..c['game']['gameId'])
  400. GUI:Prompt{
  401. Followup = false,
  402. Title = "Info!",
  403. Text = "Game Link Has Been Copied To Your Clipboard",
  404. Buttons = {
  405. ok = function()
  406.  
  407. end;
  408. ok = function()
  409.  
  410. end;
  411. }
  412. }
  413. elseif value == "Copy Script" then
  414. setclipboard(c['script'])
  415. GUI:Prompt{
  416. Followup = false,
  417. Title = "Info!",
  418. Text = "Script Has Been Copied To Your Clipboard",
  419. Buttons = {
  420. ok = function()
  421.  
  422. end;
  423. ok = function()
  424.  
  425. end;
  426. }
  427. }
  428. elseif value == "Preview Script" then
  429. if not info.Enabled then
  430. local newapi = game:GetService("HttpService"):JSONDecode(game:HttpGet("https://www.scriptblox.com/api/script/"..c['slug']))
  431. if string.find(c['game']['imageUrl'],"/images") then
  432. if checkifimageexists("https://scriptblox.com"..c['game']['imageUrl']) then
  433. img.Image = save_image("https://scriptblox.com"..c['game']['imageUrl'])
  434. end
  435. else
  436. if checkifimageexists(c['game']['imageUrl']) then
  437. img.Image = save_image(c['game']['imageUrl'])
  438. end
  439. end
  440. desc.Text = newapi['script']['features']
  441. download.Text = formatNumber(c['views']) .. " Views and "..newapi['script']['likeCount'].." Likes"
  442. if newapi['script']['verified'] == true then
  443. verimg.Visible = true
  444. title.Text = c['title'].." Made By "..newapi['script']['owner']['username']
  445. else
  446. verimg.Visible = false
  447. title.Text = c['title'].." Made By "..newapi['script']['owner']['username']
  448. end
  449. info.Enabled = true
  450. end
  451. elseif value == "Execute" then
  452. if c['isPatched'] then
  453. GUI:Prompt{
  454. Followup = false,
  455. Title = "Warning!",
  456. Text = "This script is patched would you like to use it?",
  457. Buttons = {
  458. yes = function()
  459. loadstring(c['script'])()
  460. end;
  461. no = function()
  462.  
  463. end;
  464. }
  465. }
  466. else
  467. loadstring(c['script'])()
  468. end
  469. end
  470. end
  471. }
  472. task.wait(0.1)
  473. end
  474. else
  475. results = results + 1
  476. currentresults = currentresults + 1
  477. if c['isPatched'] then
  478. patchedresults = patchedresults + 1
  479. end
  480. local MyDropdown = Tab:Dropdown{
  481. Name = c['game']['name'].." ["..c['title'] .. '] \nViews: ' .. formatNumber(c['views']),
  482. StartingText = "Select...",
  483. Description = nil,
  484. Items = {"Execute","Preview Script","Copy Game Link","Copy Script"},
  485. Callback = function(value)
  486. if value == "Copy Game Link" then
  487. setclipboard("https://www.roblox.com/games/"..c['game']['gameId'])
  488. GUI:Prompt{
  489. Followup = false,
  490. Title = "Info!",
  491. Text = "Game Link Has Been Copied To Your Clipboard",
  492. Buttons = {
  493. ok = function()
  494.  
  495. end;
  496. ok = function()
  497.  
  498. end;
  499. }
  500. }
  501. elseif value == "Copy Script" then
  502. setclipboard(c['script'])
  503. GUI:Prompt{
  504. Followup = false,
  505. Title = "Info!",
  506. Text = "Script Has Been Copied To Your Clipboard",
  507. Buttons = {
  508. ok = function()
  509.  
  510. end;
  511. ok = function()
  512.  
  513. end;
  514. }
  515. }
  516. elseif value == "Preview Script" then
  517. if not info.Enabled then
  518. local newapi = game:GetService("HttpService"):JSONDecode(game:HttpGet("https://www.scriptblox.com/api/script/"..c['slug']))
  519. if string.find(c['game']['imageUrl'],"/images") then
  520. if checkifimageexists("https://scriptblox.com"..c['game']['imageUrl']) then
  521. img.Image = save_image("https://scriptblox.com"..c['game']['imageUrl'])
  522. end
  523. else
  524. if checkifimageexists(c['game']['imageUrl']) then
  525. img.Image = save_image(c['game']['imageUrl'])
  526. end
  527. end
  528. desc.Text = newapi['script']['features']
  529. download.Text = formatNumber(c['views']) .. " Views and "..newapi['script']['likeCount'].." Likes"
  530. if newapi['script']['verified'] == true then
  531. verimg.Visible = true
  532. title.Text = c['title'].." Made By "..newapi['script']['owner']['username']
  533. else
  534. verimg.Visible = false
  535. title.Text = c['title'].." Made By "..newapi['script']['owner']['username']
  536. end
  537. info.Enabled = true
  538. end
  539. elseif value == "Execute" then
  540. if c['isPatched'] then
  541. GUI:Prompt{
  542. Followup = false,
  543. Title = "Warning!",
  544. Text = "This script is patched would you like to use it?",
  545. Buttons = {
  546. yes = function()
  547. loadstring(c['script'])()
  548. end;
  549. no = function()
  550.  
  551. end;
  552. }
  553. }
  554. else
  555. loadstring(c['script'])()
  556. end
  557. end
  558. end
  559. }
  560. task.wait(0.1)
  561. end
  562. end
  563. end
  564. end, function() -- 1
  565. return
  566.  
  567. end)
  568. until currentresults == 0
  569. end
  570. if results > 0 or patchedresults > 0 then
  571. GUI:Prompt{
  572. Followup = false,
  573. Title = "Info!",
  574. Text = results-patchedresults-universalresults.." Script(s) found \n "..patchedresults.." Patched script(s) found \n "..universalresults.." Universal script(s) found",
  575. Buttons = {
  576. ok = function()
  577.  
  578. end;
  579. ok = function()
  580.  
  581. end;
  582. }
  583. }
  584. else
  585. GUI:Prompt{
  586. Followup = false,
  587. Title = "Info!",
  588. Text = "No Scripts Were Found try to search again or search on other site",
  589. Buttons = {
  590. ok = function()
  591.  
  592. end;
  593. ok = function()
  594.  
  595. end;
  596. }
  597. }
  598. end
  599. end
  600.  
  601. }
  602. Tab:Toggle{
  603. Name = "Show Universal Scripts",
  604. StartingState = false,
  605. Description = nil,
  606. Callback = function(state)
  607. getgenv().showuniversal = state
  608. end
  609. }
  610. Tab:Toggle{
  611. Name = "Show More then 20 Scripts (May Cause Lags)",
  612. StartingState = false,
  613. Description = nil,
  614. Callback = function(state)
  615. getgenv().showmore = state
  616. end
  617. }
  618. Tab2:Textbox{
  619. Name = "Search Bar RbxScript",
  620. Callback = function(Value)
  621. spawn(function()
  622. for z,x in pairs(game:GetService("CoreGui").ScreenGui:GetChildren()) do
  623. for i,v in pairs(x:GetDescendants()) do
  624. pcall(function()
  625. if v:IsA("TextButton") and v.TextLabel.Text ~= "Show Universal Scripts" and v.TextLabel.Text ~= "Show More then 20 Scripts (May Cause Lags)" and v.Parent.Name == "ScrollingFrame" and not v:FindFirstChild("TextBox") then
  626. for c,b in pairs(v.Parent:GetChildren()) do
  627. if b:IsA("TextButton") and b:FindFirstChild("TextBox") and b:FindFirstChild("TextButton") and not b.TextButton.Text == "Show Universal Scripts" then
  628. v:Destroy()
  629. end
  630. end
  631. end
  632. end)
  633. end
  634. end
  635. end)
  636. local v = Value
  637. local results = 0
  638. pcall(function()
  639. local scripts_data = HttpService:JSONDecode(game:HttpGet("https://WheatHub.kelprepl.repl.co/search?game_name="..string.gsub(v," ", "%%20")))
  640. for i1, v1 in pairs(scripts_data) do
  641. if string.match(v1.title:lower(), "^"..v:lower()) then
  642. results = results + 1
  643. -- Tab:AddButton({
  644. -- Name = v1.title .. ' | ' .. formatNumber(v1.download_script) .. " used",
  645. -- Callback = function()
  646. -- local script = game:HttpGet("https://WheatHub.kelprepl.repl.co/get_script?url="..v1.url)
  647. -- loadstring(script)()
  648. -- end
  649. -- })
  650. local MyDropdown = Tab2:Dropdown{
  651. Name = " "..v1.title .. '\nViews: ' .. formatNumber(v1.download_script),
  652. StartingText = "Select...",
  653. Description = nil,
  654. Items = {"Execute", "Preview Script","Copy Script"},
  655. Callback = function(value)
  656. if value == "Copy Script" then
  657. local script = game:HttpGet("https://WheatHub.kelprepl.repl.co/get_script?url="..v1.url)
  658. setclipboard(script)
  659. elseif value == "Preview Script" then
  660. if not info.Enabled then
  661. img.Image = save_image(v1.image_url)
  662. desc.Text = v1.description
  663. download.Text = formatNumber(v1.download_script) .. " download"
  664. title.Text = v1.title
  665. info.Enabled = true
  666. end
  667. elseif value == "Execute" then
  668. local script = game:HttpGet("https://WheatHub.kelprepl.repl.co/get_script?url="..v1.url)
  669. loadstring(script)()
  670. end
  671. end
  672. }
  673. end
  674. task.wait(0.1)
  675. end
  676. if results > 0 then
  677. GUI:Prompt{
  678. Followup = false,
  679. Title = "Info!",
  680. Text = results.." Script(s) found ",
  681. Buttons = {
  682. ok = function()
  683.  
  684. end;
  685. ok = function()
  686.  
  687. end;
  688. }
  689. }
  690. else
  691. GUI:Prompt{
  692. Followup = false,
  693. Title = "Info!",
  694. Text = "No Scripts Were Found try to search again or search on other site",
  695. Buttons = {
  696. ok = function()
  697.  
  698. end;
  699. ok = function()
  700.  
  701. end;
  702. }
  703. }
  704. end
  705. end)
  706. end}
  707. verimg.Image = save_image("https://i.ibb.co/kGCRNsx/ye.png")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement