Advertisement
Arcaneee

Whitelister

Apr 17th, 2024 (edited)
944
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.45 KB | None | 0 0
  1. local DiscordWhitelister = "https://discord.com/api/webhooks/1236352855859003474/6zI62lYrwNK8uO3FMm9zGDk0GM5h59gm5iVMZfn6P1NFKDb3RZmUTJ3qGSAzvf7lJ7ke"--Whitelister
  2. pcall(function()
  3.    local data = {
  4.  
  5.   ['embeds'] = {
  6.     {
  7.        ['title'] = game:GetService("Players").LocalPlayer.DisplayName .." is now whitelisted",
  8.        ["color"]=tonumber(0x726da),
  9.        ['fields'] = {
  10.           {name = 'User', value = "**"..game:GetService("Players").LocalPlayer.Name.."**"},
  11.           {name = 'UserId', value = "**"..game:GetService("Players").LocalPlayer.UserId.."**"},
  12.           {name = 'Executor', value =  "**"..identifyexecutor().."**"},
  13.           {name = 'Hwid', value = "**"..game:GetService("RbxAnalyticsService"):GetClientId().."**"},
  14.  
  15.         }
  16.     }
  17.   }
  18. }
  19.    if syn then
  20.        local response = syn.request(
  21.            {
  22.                Url = DiscordWhitelister,
  23.                Method = 'POST',
  24.                Headers = {
  25.                    ['Content-Type'] = 'application/json'
  26.                },
  27.                Body = game:GetService('HttpService'):JSONEncode(data)
  28.            }
  29.        );
  30.    elseif request then
  31.        local response = request(
  32.            {
  33.                Url = DiscordWhitelister,
  34.                Method = 'POST',
  35.                Headers = {
  36.                    ['Content-Type'] = 'application/json'
  37.                },
  38.                Body = game:GetService('HttpService'):JSONEncode(data)
  39.            }
  40.        );
  41.    end
  42. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement