I've made this yesterday, then I forgot to save my studio and made it again but this time a little better. When I try to search "Wood" or anything else that's searchable, it says "Type here is not a valid member of ScrollingFrame" (Type here is the acutal text of the textbox)
My script:
bar = script.Parent.Parent.SearchBar
text = bar.Text
button = script.Parent
frame = script.Parent.Parent.ScrollingFrame
dirt = frame.Dirt
grass = frame.Grass
sand = frame.Sand
ice = frame.Ice
wood = frame.Wood
stone = frame.Stone
all = frame:GetChildren()
button.MouseButton1Click:connect(function(search)
stone.Visible = false
dirt.Visible = false
grass.Visible = false
ice.Visible = false
sand.Visible = false
wood.Visible = false
wait(.1)
frame[text].Visible = true
end)

1 comment
Thanks!