LynXS_

Untitled

Jul 1st, 2024
19,175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.46 KB | None | 0 0
  1. local HttpService = game:GetService("HttpService")
  2.  
  3. -- Base URL to bypass
  4. local baseUrl = "http://45.90.13.151:6041/?url="
  5.  
  6. -- Function to set the clipboard
  7. local function everyClipboard(value)
  8. local clipboardFunctions = {
  9. setclipboard,
  10. toclipboard,
  11. set_clipboard,
  12. setrbxclipboard,
  13. Clipboard and Clipboard.set
  14. }
  15.  
  16. for _, clipboardFunction in ipairs(clipboardFunctions) do
  17. if clipboardFunction then
  18. clipboardFunction(value)
  19. return true
  20. end
  21. end
  22. return false
  23. end
  24.  
  25. -- Function to fetch data from the URL
  26. local function fetchAndParse(base, userLink)
  27. local fullUrl = base .. userLink
  28. local success, response = pcall(function()
  29. return game:HttpGet(fullUrl)
  30. end)
  31.  
  32. if success then
  33. local parsedResponse = HttpService:JSONDecode(response)
  34.  
  35. -- Print each key-value pair and check global variables
  36. for key, value in pairs(parsedResponse) do
  37. print(key .. " : " .. tostring(value))
  38. if _G.CopyMessage and key == "message" then
  39. everyClipboard(tostring(value))
  40. end
  41. if _G.CopyKey and key == "key" then
  42. everyClipboard(key)
  43. end
  44. end
  45. return true
  46. else
  47. warn("Failed to fetch URL:", response)
  48. return false
  49. end
  50. end
  51.  
  52. -- Fetch and print the data
  53. fetchAndParse(baseUrl, _G.userLink)
  54.  
Advertisement
Add Comment
Please, Sign In to add comment