-
Hello i made a feedback gui but when i try to send message, it dont work.
-
Also i tried enable http service
and this is the script;
local webhook = "i dont put webhook for security"
local ifdone = false
-- Variables --
local HTTP = game:GetService("HttpService")
-- Screen 1 --
function game.ReplicatedStorage.F1.OnServerInvoke(player, msg)
if ifdone == false then
local payload = HTTP:JSONEncode({
content = "",
embeds = {{
title = "**New Application From "..player.Name..":**",
description = msg.."",
type = "rich",
color = 3066993,
footer = {
text = "This application was generated by DiscoBytez"
}
}},
username = player.Name.. "'s Application"
})
HTTP:RequestAsync({
Url = webhook,
Method = "POST",
Headers = {
["User-Agent"] = "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:96.0) Gecko/20100101 Firefox/96.0"
},
Body = payload
})
ifdone = true
return "Question recieved!"
end
end```
how can i fix it?