local HttpService = game:GetService ("HttpService")
local webhook = "" -- Put webhook here
local data = {
["embeds"] = {{
["title"] = Config.TurnstileName,
["color"] = 65331,
['avatar'] = imageurl,
['username'] = "Open",
['title'] = Config.TurnstileName,
['description'] = "Turnstile opened by " .. lastscanneduser.Name,
['color'] = 65331,
["footer"] = {
["text"] = os.date("Portal Technologies • %x %H:%M")
}
["fields"] = {
{
["name"] = "", -- This is the title of your field.
["value"] = "" -- This is the value of your field.
}
}}
}
}
local jsonData = HttpService:JSONEncode(data)
HttpService:PostAsync(webhook, jsonData)