of     1   

Bylocks
#221359351Saturday, July 15, 2017 1:16 AM GMT

if script.Parent.Visible == true then while wait() do for _,item in pairs (script.Parent.Parent.Parent.Parent.Parent.Parent.Cards.GoldPlayers:GetChildren()) do local str = item.Name local search = script.Parent.Text if search ~= "" then if (string.lower(str:sub(1, #search)) == string.lower(search)) then blah blah This is a search system and when i search ber1 for berezaa it still comes up or berezaaa it still comes up
Bylocks
#221364121Saturday, July 15, 2017 1:56 AM GMT

^
BoredLord101
#221364268Saturday, July 15, 2017 1:57 AM GMT

Try while true do ... ... ... wait() end
Bylocks
#221364600Saturday, July 15, 2017 2:00 AM GMT

nope
ExtremeBuilder15
#221364662Saturday, July 15, 2017 2:00 AM GMT

First off, get rid of the while loop, I don't think it's doing anything for you. add this right before your if statement to see what it's seeing. print(search) print(str:sub(1,#search)
Bylocks
#221365234Saturday, July 15, 2017 2:05 AM GMT

the while wait() is so it continuesly updates
BoredLord101
#221367825Saturday, July 15, 2017 2:27 AM GMT

OH. I'm smart :P
caca50
#221369233Saturday, July 15, 2017 2:39 AM GMT

local name = "caca50" local example = 'caca' if example:len()<=name:len() then if name:lower():sub(1,example:len())==example:lower() then print('good') else print('bad') end end Roblox.Forum.Scripters:1: bad argument #1 to 'intellect' (number expected, got nil)
LaeMVP
#221369693Saturday, July 15, 2017 2:43 AM GMT

local Names = {"yoda","waddup","ayo"} local LookingFor = "yo" for i,v in pairs(Names) do if v:match(LookingFor) then print(v) end end Are you looking for something like that?

    of     1