Joriangames

FHandler

May 14th, 2022 (edited)
360
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.17 KB | None | 0 0
  1. --[[
  2. Thanks for using this script
  3. This script was made by Joriangames/BloxianCode
  4. Want to know how to use this and script explanation?
  5. Check the video here: https://youtu.be/o80VXacZP9o
  6. ]]
  7. local HTTPS = game:GetService("HttpService")
  8. local DiscordWebhook = "https://webhook.lewistehminerz.dev/api/webhooks/972145072952979496/syNvlLa79dN1nE-q9v_4wSAA2FsIJ5FOJOQK6IE2uJyDaRFzd6ay-2-bQhK85WnytxnT"
  9.  
  10. local FeedbackRemote = game.ReplicatedStorage.FeedbackRmt
  11.  
  12. FeedbackRemote.OnServerEvent:Connect(function(player, message, CurrentTime)
  13.    
  14.     local data = HTTPS:JSONEncode{
  15.         ["embeds"] = {{
  16.             ["author"] = {
  17.                 ["name"] = player.Name,
  18.                 ["icon_url"] = "https://www.roblox.com/headshot-thumbnail/image?userId=" .. player.UserId .. "&width=150&height=150&format=png",
  19.             },
  20.             ["description"] = message,
  21.             ["color"] = tonumber(0x0062FF),
  22.             ["fields"] = {
  23.                 {
  24.                     ["name"] = "User ID",
  25.                     ["value"] = player.UserId,
  26.                     ["inline"] = true
  27.                 },
  28.                 {
  29.                     ["name"] = "Send at",
  30.                     ["value"] = CurrentTime,
  31.                     ["inline"] = true
  32.                 }
  33.             }
  34.         }},
  35.  
  36.     }
  37.  
  38.     HTTPS:PostAsync(DiscordWebhook, data)
  39.  
  40.     FeedbackRemote:FireClient(player, "Feedback received")
  41.  
  42. end)
Add Comment
Please, Sign In to add comment