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 |
|
|
|
| 21 Feb 2014 08:31 PM |
| Depends on where the selectionbox is parented? |
|
|
| Report Abuse |
|
|
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
|
  |
| 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
|
  |
| Joined: 20 Jun 2013 |
| Total Posts: 2699 |
|
| |
|
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 |
|
|