of     1   

br45entei
#59242615Thursday, December 08, 2011 1:01 AM GMT

...return a Vector2, or just two numbers, or a string containing numbers and a comma?
GuestNoobPerson
#59242742Thursday, December 08, 2011 1:03 AM GMT

Did you check the wiki?
epicfail22
#59242765Thursday, December 08, 2011 1:03 AM GMT

I think it returns the string and it's location, if I remember right.
swmaniac
#59242782Thursday, December 08, 2011 1:03 AM GMT

2 numbers.
br45entei
#59242819Thursday, December 08, 2011 1:04 AM GMT

Yeah, it only brought up the function dump/string manipulation page.
jav2612
#59242882Thursday, December 08, 2011 1:05 AM GMT

string.find() can find anything in a string, so if it's a number you should use tostring(number) string.find(string, lookfor, start) string is the string that your looking in, lookfor is what your looking for inside the string, and start is at what part of the string does it start looking, you can put it at 1 to start at the beginning string.find("string", "i", 1) will return (4) because the i is located in the 4th string.sub
AgentFirefox
Top 100 Poster
#59243604Thursday, December 08, 2011 1:14 AM GMT

FUN FACT: string.find(String, Pattern) functions almost the same way as string.match(String, "()"..Pattern.."()")! The second return value for the find function is just one less than the second return value for the match function! Cheers, -- AFF
br45entei
#59251261Thursday, December 08, 2011 3:13 AM GMT

...I was talking to GuestNoobPerson above. If I assign the variable 'num' to = string.find("kill/billyboblikespie", "kill/") and then print(tostring(num)) I get "1". Why not "1, 5" or "1, 5" or Vector2.new(1, 5)? Only one number is not enough... I end up using "if string.sub(msg, 1, 5) == "kill/" then", which is sometimes longer...
br45entei
#59251306Thursday, December 08, 2011 3:13 AM GMT

Oh, AgentFireFox, I didn't see you there! thanks.

    of     1