I'm trying to make a script that relays whatever the user inputs into the TextBox GUI back to the player via print(" "). The code that I have tried so far is:
player_input = script.Parent.Parent.TextBox.Text
function submit()
print("Hello, " .. player_input)
end
script.Parent.MouseButton1Down:connect(submit)
Can anyone fix my errors?

3 comments
Thanks, but this does not work. I think my error is in the variable "player_input". I don't know that "script.Parent.Parent.TextBox.Text" is the correct path...
Follow it from the script then.
I actually figured this out, so I'm good. Thanks for trying to help, though.