so my code looks like this, the only player in the server is called “anon92559147” and Args[1] is “ty” anybody know why ‘1’ is not being printed?
Don’t screenshot your code, it’s hard to read. Make sure you surround your code with this
--```lua
-- code here
--```
1 Like
You might have a space in Args[1]. Try subbing just before the last character and see if that fixes the problem:
Args[1] = string.sub(Args[1],1,-2)
You can also gsub for spaces in the string and replace with an empty string:
Args[1] = string.gsub(Args[1],"%s+","")
2 Likes
k, ill try this real quick see how it goes
it worked lol! Thanks again man.
I do tend to do this for larger blocks but personally I wouldn’t say that screenshot is hard to read
It isn’t hard to read, but it isn’t how you’re supposed to do it.
1 Like