Find all keys that fit a prefix in datastore

I’m trying to make a datastore search system where given a name (key), it finds all the names that fit inside the given name. I can’t seem to find anything similar to string.find on the datastore service.

I’m trying to make something similar to saber showdown’s clan search system, where you can type in a clan name and get all the clans that fit your prefix.

The way I’m thinking of doing it is using DataStore:ListKeysAsync(), I keep getting this error every time I type in the search textbox.

image

Is there another way of making a search system without causing this error?

Well. There are ordered datastores. Just like find more keys every second or smth