Search engine issue

So I’m not the best at scripting but I’m having this search engine feature so you type something in and press enter and it makes the thing visible but it don’t work my code is:

script.Parent.MouseButton1Click:Connect(function()
script.Parent.Parent.Options.Startup.BooglesFrame.Search.Text = “Test”
script.Parent.Parent.Options.Startup.BooglesFrame.Test.visible = true
end)

as in the keycode or a textbutton?
the code you provided is a textbotton

Yeah I’m not the greatest at coding as in a key as well…