Title is pretty much self-explanatory, How do i count the amount of WORDS in a string?(not characters so don’t reply “string.len” lol)
I know i could’ve done it like this but i found a better solution, thanks for your help though
Instead of using string.split since it returns a table(depending) i used string.find, because im actually trying to count the spaces
1 Like
I wouldn’t call that ‘better’ as really PAGO’s solution is probably the fastest.
It’s probably more of a personal preference