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.

5 comments
calling 'len' on bad self (string expected, got table) 22:34:29.702 -
Sorry about that, was a small error. Try it now.
Still doesn't work. :/
it works. I tested it myself. Copy this into a scripr inside a screenGui. also inside the screengui should be a frame called Frame with a Frame inside it called Cow
It set's it's visible to false, even if I type "C" or "c". :/