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: How would I say

Previous Thread :: Next Thread 
tahu157 is not online. tahu157
Joined: 16 Nov 2008
Total Posts: 15045
21 Feb 2014 08:29 PM
"If this model has a SelectionBox in it, do this, and if it doesn't have a SelectionBox in it, don't do that."



Is it just:

if Model:FindFirstChild("SelectionBox") then
[Insert Action Here]
else end

?

Because, that doesn't seem to be working for me.
Report Abuse
theroadrunner is not online. theroadrunner
Joined: 06 Oct 2010
Total Posts: 862
21 Feb 2014 08:31 PM
Depends on where the selectionbox is parented?
Report Abuse
tahu157 is not online. tahu157
Joined: 16 Nov 2008
Total Posts: 15045
21 Feb 2014 08:33 PM
It's in the Model.


Anyway, I think I figured out what was wrong.
Report Abuse
Zachiah is not online. Zachiah
Joined: 27 Oct 2013
Total Posts: 1401
21 Feb 2014 08:36 PM
Your example code should work.

Assuming "[Insert Action Here]" is not really in your code.
Report Abuse
transIate is not online. transIate
Joined: 20 Jun 2013
Total Posts: 2699
21 Feb 2014 08:42 PM
wtf
Report Abuse
tahu157 is not online. tahu157
Joined: 16 Nov 2008
Total Posts: 15045
21 Feb 2014 09:07 PM
Hehe, of course not.

The problem was that I did not actually put SelectionBox but rather ClickDetector.

I have filled my facepalm quota for the day.
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