I'm trying to make a feedback thing where it will send an HTTP request, but when I try to, it will send the request, but it will send something blank. I think its the script I'm using to get the text. I'm using this script.
script.Parent.Parent.TextBox.Text
I also have it print when it sends the request what is sent, so I'm pretty sure its that. Is there something I'm doing wrong?
Edit: Heres the whole script
local url = ""
local httpservice = game:GetService("HttpService")
script.Parent.MouseButton1Click:Connect(function()
local data = {
['embeds'] = {{
['title'] = script.Parent.Parent.TextBox.Text;
}}
}
local finaldata = httpservice:JSONEncode(data)
httpservice:PostAsync(url, finaldata)
end)

2 comments
Can you send the WHOLE script?
Yeah, sorry about that.