Alright, the title name is confusing, but let me tell what I'm trying to do: I'm working on my own admin, and I've learned some cool stuff while working on the admin! Now, the thing I am doing a command. I will use :re for example. So, say like if you say :re, you respawn. Simple! But here is the thing, I want to figure out on when you add another letter, like :ree
, it will still respawn you.
If you're still confused, I'll explain it one more time. You say :re, it respawns you! But if you accidently add 1, or more letters, it will still respawn you. For example, you say it like :ree
instead of :re
, it will still respawn you.
if this is what you want to do then use the find built in function that looks for the word re in your chat if it detects it then run your code maybe something like
local str = "this is player input" if str:find("the command :re") then print("run command :re") end
btw replace the strings in the parentheses with the actual inputs and don't use the print run the command also make sure you have turned them into strings