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: A findfirstChild statement

Previous Thread :: Next Thread 
EMAN381 is not online. EMAN381
Joined: 27 Nov 2007
Total Posts: 4300
04 Nov 2011 06:13 PM
if script.Parent.Parent.Parent.Name ~= "EMAN381x" and (character:findFirstChild("Shirt" ~= nil).ShirtTemplate ~= "http://www.roblox.com/asset/?id=52395843" then


--Players.EMAN381.PlayerGui.SkinGui.AutoClothes:8: ')' expected near 'then'

--What I want is that line to find a shirt, and if there is one see if the shirt has the same URL
Report Abuse
EMAN381 is not online. EMAN381
Joined: 27 Nov 2007
Total Posts: 4300
04 Nov 2011 06:16 PM
I forgot the ')' in the 'character:findFirstChild("Shirt" ~= nil).'

But yet it still doesn't work. How would this be fixed?
Report Abuse
FlamedSkull is not online. FlamedSkull
Joined: 23 May 2009
Total Posts: 1379
04 Nov 2011 06:19 PM
Its not Shirt Template..
Report Abuse
EMAN381 is not online. EMAN381
Joined: 27 Nov 2007
Total Posts: 4300
04 Nov 2011 06:20 PM
Uh yes it is..
Report Abuse
GigsD4X is online. GigsD4X
Joined: 06 Jun 2008
Total Posts: 3794
04 Nov 2011 06:20 PM
if character:findFirstChild("Shirt").ShirtTemplate=="http://www.roblox.com/asset/?id=52395843" then
Report Abuse
FlamedSkull is not online. FlamedSkull
Joined: 23 May 2009
Total Posts: 1379
04 Nov 2011 06:22 PM
Oh wait, no, can print numbers at the beginning of each for and if or while statements.
Report Abuse
FlamedSkull is not online. FlamedSkull
Joined: 23 May 2009
Total Posts: 1379
04 Nov 2011 06:23 PM
Sorry, blanking out today. Would you like some help on it? PM me the script and i'll fix it.
Report Abuse
EMAN381 is not online. EMAN381
Joined: 27 Nov 2007
Total Posts: 4300
04 Nov 2011 08:20 PM
Nevermind.

I've did some other stuff. I got it fixed now :D
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