So I am trying to do custom report button that u have to type players username and the reason why he/she is reporting him/her. And I don’t really understand why it can’t read the script.Parent.TextBox.Text
If you know about this stuff, please let me know how can I do it.
Please show your full code.
This alone should be working fine. Your issue may be caused by something else.

And this is what i get when i type in textbox and submit it:

UI should be handled on the client and I’m fairly sure to send an external request, you have to do it on the server. Where is this script in the explorer? I can’t imagine being able to put a server script within the same folder as a UIObject, so that’s why I’m confused.
["description"]
won’t be updated since you left it hardcoded in the data table. In the MouseButton1Down
event, put this in:
data.embeds.description = script.Parent.TextBox.Text
local finishedData = http:JSONEncode(Data)
Should work fine. This way, when the report is submitted, it retrieves what the text currently is. Now when it gets retrieved by the webhook, it should display the description’s string in the embed.
1 Like