Ive tried this

if script.Parent.TextBox.Text == "golden gun" then print('works!') end