Hi. I want to make an AI Chat Bot for my roblox Chatting “app”. Everything goes very well, but I have one issue that i want to fix. When a player types for ex.: “How are you”, the bot answers “I’m fine” but I want
the bot to react to the message even when the player says “how are you” (multiple spaces between words)
Any help is appreciated.
EDIT: It works for spaces before or after the message using string.match()
Okay, I solved it without the module. All I needed to do is split the message using string.split(message, " ")
and then loop through the table of words and if the trigger (“how are you”) contains all the words from the table, we are going to respon. Thanks for the help tho