I think Im using it wrong. Im trying to get LUA to measure the amount of letters the Text has. Is there any easy way to do that?

WaitTime=tonumber(script.Parent.Text)+2
wait(WaitTime)

Error:Players.Player.PlayerGui.TextMessage.Text.Script:3: attempt to perform arithmetic on a nil value