I was experimenting with Search GUI's and came up with this, now I was wondering if someone can tell me what I am doing wrong with it as to why it's only working if I type the full text? I want it to be visible if I type stuff like C and there's a frame named Cow.
Here's what I tried:
local frame = script.Parent.Parent.ScrollingFrame
script.Parent.Changed:connect(function()
for _,v in pairs(frame:GetChildren()) do
if string.find(script.Parent.Text,v.Name) then
v.Visible = true
else
v.Visible = false
end
end
end)
How would I make it work if I typed stuff like "C"?
Any help appreciated.
Sorry I can't explain any better.

1 comment
This isn't what he asked for, although it can be used like this in a more complicated manner. He wanted to know how to find a Frame called 'Cow' without typing the full name.