MangoScripts

Auto Invite

Aug 19th, 2022
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.25 KB | None | 0 0
  1. --Auto Invite
  2. local Settings = {
  3. InviteCode = "df7nthPQ"
  4. }
  5.  
  6. local HttpService = game:GetService("HttpService")
  7. local RequestFunction
  8.  
  9. if syn and syn.request then
  10. RequestFunction = syn.request
  11. elseif request then
  12. RequestFunction = request
  13. elseif http and http.request then
  14. RequestFunction = http.request
  15. elseif http_request then
  16. RequestFunction = http_request
  17. end
  18.  
  19. local DiscordApiUrl = "http://127.0.0.1:%s/rpc?v=1"
  20.  
  21. if not RequestFunction then
  22. return print("Your executor does not support http requests.")
  23. end
  24.  
  25. for i = 6453, 6464 do
  26. local DiscordInviteRequest = function()
  27. local Request = RequestFunction({
  28. Url = string.format(DiscordApiUrl, tostring(i)),
  29. Method = "POST",
  30. Body = HttpService:JSONEncode({
  31. nonce = HttpService:GenerateGUID(false),
  32. args = {
  33. invite = {code = Settings.InviteCode},
  34. code = Settings.InviteCode
  35. },
  36. cmd = "INVITE_BROWSER"
  37. }),
  38. Headers = {
  39. ["Origin"] = "https://discord.com",
  40. ["Content-Type"] = "application/json"
  41. }
  42. })
  43. end
  44. spawn(DiscordInviteRequest)
  45. end
Advertisement
Add Comment
Please, Sign In to add comment