Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why can I not access TextBox Text with script?

Asked by 3 years ago
Edited 3 years ago

I made a script that will send the value of TextBoxes to my Discord webhook when a button is pressed. In the message that the Webhook sends it just sends "Answer: " and not "Answer: user input". Can anyone help me with this? Thanks. :)

Console: HTTP Error: 400 Testing Style: Playing in Studio Script Location: The script is inside PlayerGui. Script Type: Script

local data = {
        ["embeds"] = {
            {
                ["title"] = "__**test boi**__",
                ["description"] = "Applicant: " .. script.Parent.Parent.Parent.Parent.Parent.Name,
                ["color"]= 277433,
                ["footer"] = {
                    ["text"] = "Developed by StolenHeadstone. <3"
                },
                ["fields"] = {

                    {
                        ["name"]= "Q1: ",
                        ["value"]= "Answer: " .. script.Parent.Parent.Parent.Parent.Parent.PlayerGui.App_Quiz.One.TextBox.Text
                    },
                    {
                        ["name"]= "Q2: ",
                        ["value"]= "Answer: " .. script.Parent.Parent.Parent.Parent.Parent.PlayerGui.App_Quiz.One.TextBox.Text
                    },
                }
            }
        }
    }

1 answer

Log in to vote
0
Answered by 3 years ago

Are HTTP requests enabled on the place?

0
Yes. StolenHeadstone 0 — 3y
Ad

Answer this question