Search Bar Player [ASK]

So I want to make search bar, if we type, it will automatic give suggestion (text label/button) on a scrollframe and whenever we delete or add a text and it doesn’t match again, it will destroy the button/label, how to achieve that? Maybe if you know, like in Commander Admin Panel

1 Like

So what I would recommend have all your options listed in one frame/scrolling frame.
Loop through every option, check the text, then set the visible property:

local scrollFrame = script.Parent.ScrollingFrame — Change to your path
local textBox = script.Parent — change this to the correct path

local function checkResult(search)
    for _, label in pairs(scrollFrame:GetDescendants()) do
       if label.Text:find(search) then return end
        label.Visible = false
    end
end

textBox:GetPropertyChangedSignal("ContentText"):Connect(function()
    checkResults(textBox.ContentText)
end)
1 Like

I believe this might help you :