I’m trying to make chat commands. Problem is I don’t know how to check the first character of a message string. I thought it would be similar to python but it isn’t and I can’t find any clear instructions online for Roblox Lua.
I believe that the command was :sub(a,b). You would put the values to get the portion of the string from the letters number a to b. In this case I believe that it would be string:sub(1,1). Or I may be wrong as this is lua syntax, and roblox operates on luau.
Edit:
Actually its sub(YourString,a,b)
Follows what I said above except your string is now the first argument of the function.
Documentation
Lol I was doing this 30 minutes ago on an IDE.
1 Like
This works, thanks for the help.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.