Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How would I make a cool search bar, like google?

Like if you type in "red' in the textbox and press enter it shows all the images filtered with red or something

1 answer

Lets say Input was the name of the textBox, You would use FocusLost to see if they typed something, And if they typed something you >then> Do something, And you use elseif to continue.

Input.FocusLost:connect(function ()
    local text = Input.Text
    if text == "Red" then
      frame.BackgroundColor3 = BrickColor.Red().Color
elseif text == "Blue" then
   frame.BackgroundColor3 = BrickColor.Blue().Color
      
    end
end)

This is how you would do it so if it doesn't work there is either an error or the way you are using it is wrong, But that is it, Accept my answer if it worked ^_^

1 comment

1

you guys did this so one of you can get rep?

This discussion is preserved as it was. New answers, comments, and votes are closed.