trogyssy
|
  |
| Joined: 29 Oct 2010 |
| Total Posts: 2322 |
|
|
| 07 Mar 2014 09:07 AM |
if child.Name=~"Tool1" and child.Name=~"Tool2" and child.Name=~"Tool3" and child.Name=~"Tool4" and child.Name=~"Tool5" then child:Destroy() end
Line 1 gets the error |
|
|
| Report Abuse |
|
|
|
| 07 Mar 2014 09:14 AM |
Schrodinger, is that you? /jk That line would never pass. You're checking if something has several names simultaneously. |
|
|
| Report Abuse |
|
|
DataStore
|
  |
| Joined: 07 Feb 2012 |
| Total Posts: 8540 |
|
|
| 07 Mar 2014 09:23 AM |
@Flip, The if statement is completely fine, so long as he fixes the issue with it.
@OP, ~= not =~
|
|
|
| Report Abuse |
|
|
|
| 07 Mar 2014 09:29 AM |
| Sorry, my bad. I thought he was checking if it was named "Tool" and not if it wasn't. :P |
|
|
| Report Abuse |
|
|
trogyssy
|
  |
| Joined: 29 Oct 2010 |
| Total Posts: 2322 |
|
| |
|