So I get that you can use string.sub to check if the player's first few letters are a prefix, and then you can use whatever they say after that as a player's name, or whatever.
But how exactly do you find out where the second word ends? I mean, let's say I wanted to make a command that would forcefield a player for a duration of time
:ff bluehawks 20
How would I actually get the third word? In this case it's a number, but what if it wasn't?

1 comment
you could try doing (string:split(" "))[3]