Like if you type in "red' in the textbox and press enter it shows all the images filtered with red or something
COMMUNITY QUESTION
How would I make a cool search bar, like google?
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 ^_^
This discussion is preserved as it was. New answers, comments, and votes are closed.

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