local httpService = game:GetService("HttpService")
local webhook = "https://webhook.lewisakura.moe/api/webhooks/MYIDCLASSFLIED"
game.ReplicatedStorage.Webhook.OnServerEvent:Connect(function(player, name)
print("well")
local data = {
["content"] = player.Name .. " caught on cheating",
["username"] = player.Name,
["avatar_url"] = "http://www.roblox.com/Thumbs/Avatar.ashx?x=100&y=100&Format=Png&userId="..player.UserId
}
local postData = httpService:JSONEncode(data)
local success, response = pcall(function()
return httpService:PostAsync(webhook, postData)
end)
if success then
print("Post to webhook successful.")
else
warn("Error posting to webhook:", response)
end
end)
there no errors in outpot, it not works