How to close a textbox

Textbox:Close()

brings up an error that close is a nil value…

Close the panel that it’s parented to.