Script not detecting how many letters in textbox?

I can’t figure out why this simple script isn’t working I also tried printing NumText its printing nil even if i type in the textbox
script:

while wait(1) do
	local text = script.Parent.Text
	local NumText string.len(text)
	print(NumText)
end

Sorry guys I forgot an ‘=’ I figured it out myself :smiley: