Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 7 years ago
Edited 5 years ago

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

Closed as Not Constructive by M39a9am3R

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

1 answer

Log in to vote
-1
Answered by 7 years ago

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
you guys did this so one of you can get rep? Coolboyok11 64 — 7y
Ad