Every time I do the following it prints blank.
I have a screengui and inside that a textbox and a button. This script is inside the button. Everytime I print the data, everytime I click the button it always prints nothing. I do have text entered in the textbox.
local TextBox = script.Parent.Parent.TextBox
script.Parent.MouseButton1Click:Connect(function() -- Sorry if my spelling was wrong, doing this from head.
local Data = TextBox.text
print(Data)
end)

2 comments
Capitalize the t in text after TextBox (line 4).
"-- Sorry if my spelling was wrong, doing this from head."