of     1   

Quentonious
#44597405Saturday, March 26, 2011 3:31 AM GMT

I'm merely wondering if it is possible to create a script ine that selects objects containing a "keyword" of some sort. For example, say I want to find something, like a script, and disable it. so i know everything like this: while true do child = Workspace:GetChildren() wait() if child.Name == "Infected" and child.className == "script" then print("Disabling Infected Scripts...") child.Disabled = true print("The Script was Disabled.") else print("Could not disable Script(s)!") end end
Quentonious
#44597490Saturday, March 26, 2011 3:33 AM GMT

...But i don't know how to, in line 4, to select strings containing the word infected so I can also grab stuff like "Infected this Plac3!" and etc. Note that this was an example. I still need to know how to do it, though.
ShiroPixel
#44597902Saturday, March 26, 2011 3:40 AM GMT

string.find();
ShiroPixel
#44598014Saturday, March 26, 2011 3:42 AM GMT

Sorry, I mean, string.match (str, pattern, index) So, str will be child.Name pattern = "infected"

    of     1