Whats happening with my code is it isn’t showing the text from the textbox,
My code is
local http = game:GetService("HttpService")
script.Parent.MouseButton1Click:connect(function()
if script.Parent.Parent.thebug.Text ~= "Your report has been sent!" then
local http = game:GetService("HttpService")
local Data =
{
["content"] = "",
["embeds"] = {{
["title"] = "Bug Report",
["description"] = (script.Parent.Parent.thebug.Text),
["color"] = E03C3C,
["footer"] = {
["text"] = "Sent by ".. script.Parent.Parent.Parent.Parent.Parent.Name
}
}}
}
Data = http:JSONEncode(Data)
http:PostAsync("https://discordapp.com/api/webhooks", Data) --Put the link you saved between the two quotes.)
wait()
script.Parent.Parent.thebug.Text = "Your report has been sent!"
wait(3)
script.Parent.Parent.thebug.Text = ""
script.Parent.Parent:TweenPosition(UDim2.new(0.3, 0, 0.7, 0), "In", "Quad", 2)
end
end)
I can put “hi” for the description it shows up but if I do (script.Parent.Parent.thebug.Text) it doesn’t.
How can I fix that?