I’ll attach a copy of the script
local WebhookPrefix = “https://hooks.hyra.io/”
local WebhookPath = “” – Replace with your actual Discord webhook path
– Combine the prefix and path to construct the full webhook URL
local Webhook = WebhookPrefix … WebhookPath
local RS = game:GetService(“ReplicatedStorage”)
local Event = RS:WaitForChild(“SubmitEvent”)
local https = game:GetService(“HttpService”)
– Retry settings
local MAX_RETRIES = 3
local RETRY_DELAY = 5 – in seconds
Event.OnServerEvent:Connect(function(plr, Player, Reason, Desc, Proof)
print(“OnServerEvent triggered!”)
local data = {
['embeds'] = {{
['title'] = "Reported Player",
['description'] = "A player has submitted an in-game report!",
['thumbnail'] = {
['url'] = 'https://media.discordapp.net/attachments/1038554017736953977/1042150401564225536/stufflogo2.jpg?width=676&height=676',
},
["fields"] = {
{
["name"] = "Submitted by",
["value"] = plr.Name,
["inline"] = true
},
{
["name"] = "Player Reported",
["value"] = Player,
["inline"] = false
},
{
["name"] = "Reason for Report",
["value"] = Reason,
["inline"] = false
},
{
["name"] = "Description",
["value"] = Desc,
["inline"] = false
},
{
["name"] = "Evidence",
["value"] = Proof,
["inline"] = false
},
}
}}
}
print("Data:")
for key, value in pairs(data) do
print(key, value)
end
local finaldata = https:JSONEncode(data)
print("Before HTTP request")
local success, response = pcall(function()
return https:PostAsync(Webhook, finaldata, Enum.HttpContentType.ApplicationJson)
end)
print("After HTTP request")
if success and response == "OK" then
print("Webhook request successful!")
else
warn("Error sending webhook:", response)
-- Print the full error object
if not success then
warn("Error object:", response)
end
end
end)