How do I tell if a frame has a certain string in its name?

So I am currently making a search system, and I need to know how I would tell if the string that the players search’s for, if a certain frame has that string in its name.

For instance,
I have a frame called “Shoes”
the player types in “S”
It should pop up,
If they type in “Sh” then it also pops up.

So how can I tell if a certain string is in the name of a frame(Or any object for that matter)

if string.find(Frame.Name, "S") then
1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.