How Do I find A Specific Word From A Message?

Hello, I am currently working on an moderation system and was wondering how I could take a word or phrase from a message. Ex : a moderator says “:kick jeff” then it would find detect the specific word and from the message

If you know any tutorials or sites that might help with this, feel free to message me.

Use string.split with a space to split a sentence into its words.

local args = string.split("Hello world!", " ");
print(args[1]);

This will print out “Hello”.

2 Likes