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 » Scripters
Home Search
 

Re: Check for tool

Previous Thread :: Next Thread 
kidchaos24 is not online. kidchaos24
Joined: 02 Feb 2011
Total Posts: 169
21 Oct 2015 11:51 PM
How would I check starter gear for a tool? And if the tool is found not continue the rest of script?
If _______________________ then end else_____________
That's what i'm guessing it would look like.
As always thanks in advance for the help awesome scriptwriters!
Report Abuse
kidchaos24 is not online. kidchaos24
Joined: 02 Feb 2011
Total Posts: 169
22 Oct 2015 12:03 AM
BUMP
Report Abuse
HRnSN is not online. HRnSN
Joined: 22 Jun 2009
Total Posts: 1276
22 Oct 2015 12:04 AM
if Player.StarterGear:FindFirstChild( "Tool" ) then

return

end
Report Abuse
kidchaos24 is not online. kidchaos24
Joined: 02 Feb 2011
Total Posts: 169
22 Oct 2015 12:07 AM
Shouldn't else come after return in the possibility that the player does not have tool and the script would continue onto the next lines?
Report Abuse
HRnSN is not online. HRnSN
Joined: 22 Jun 2009
Total Posts: 1276
22 Oct 2015 12:18 AM
Well, it doesn't have to lol.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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