For example, ":speed iiKind 100", how would you split it into multiple words? Would you use string.sub()? string.find()? etc?
You can use string.gmatch() for it :
1 | local str = ":speed iiKind 100" |
2 |
3 | for word in string.gmatch(str, "[^ ]+" ) do |
4 | print (word) |
5 | end |
https://www.robloxdev.com/articles/string-patterns-reference