This is my code. I have no idea why it ain't working.
local main = script.Parent.Parent script.Parent.MouseButton1Down:Connect(function() local http = game:GetService("HttpService") local rank = main.First.Rank.Text local username local priority = tostring(main.Priority.Value) local number = tostring(main.Second.Num.Text) local reason = tostring(main.Second.Rea.Text) local Data = { username..", "..rank.." has sent a priority "..priority.." back-up request. "..number.." personnel members are requested for the following reason: "..reason; } Data = http:JSONEncode(Data) http:PostAsync("https://discordapp.com/api/webhooks/...", Data) end)
do something like
local Data = { ["content"] = "msg content", ["title"] = "msg title" } Data = http:JSONEncode(Data) http:PostAsync("webhook url", Data)
etc
this should work