generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: 'then expected near ='

Previous Thread :: Next Thread 
trogyssy is not online. 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
filiptibell is not online. filiptibell
Joined: 10 Mar 2013
Total Posts: 2362
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 is not online. 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
filiptibell is not online. filiptibell
Joined: 10 Mar 2013
Total Posts: 2362
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 is not online. trogyssy
Joined: 29 Oct 2010
Total Posts: 2322
07 Mar 2014 09:45 AM
Thanks DataStore
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image