I am making a search system
Here’s the code:
local function Search()
Search_Bar:GetPropertyChangedSignal("Text"):Connect(function()
local search = string.lower(Search_Bar.Text)
for i, v in pairs(Scroll:GetChildren()) do
if v:IsA("Frame") then
if search ~= "" then
local item = string.lower(v.Name)
if string.match(item, search) then
v.Visible = true
else
v.Visible = false
end
else
v.Visible = true
end
end
end
end)
end
Search()
The search system works, but not the way I would like it to.

When I searched for Technology with the keyword te, Literature also appeared. This is because literature also contains te. What I want is when you type te only Technology should appear. (or any word that starts with te)