FootBa11
|
  |
| Joined: 16 Sep 2008 |
| Total Posts: 11501 |
|
|
| 19 Dec 2013 08:36 PM |
I want to have it to where when you have a tool equipped, everything you can use it on will have a selection box around it only you can see.
Possible?
Also i need to know if you can put selection boxes around models. Thanks ;D! |
|
|
| Report Abuse |
|
|
|
| 19 Dec 2013 08:50 PM |
You'll have to put all the selection boxes into the PlayerGui and set the Adornee to what you want surrounded. And I do think you can adorn models too, but try it out. |
|
|
| Report Abuse |
|
|
FootBa11
|
  |
| Joined: 16 Sep 2008 |
| Total Posts: 11501 |
|
|
| 19 Dec 2013 08:58 PM |
Thats dumb! Why can you adorn to models?
;-; |
|
|
| Report Abuse |
|
|
FootBa11
|
  |
| Joined: 16 Sep 2008 |
| Total Posts: 11501 |
|
|
| 19 Dec 2013 09:06 PM |
| can you adorn a bilboard gui to a position? |
|
|
| Report Abuse |
|
|
Madified
|
  |
| Joined: 19 Apr 2011 |
| Total Posts: 5292 |
|
| |
|
FootBa11
|
  |
| Joined: 16 Sep 2008 |
| Total Posts: 11501 |
|
|
| 19 Dec 2013 09:13 PM |
an invisible brick would interfere with the click detector. It is in a tool. And the main function of the tool is to attach things to other things.
An invisible brick would stop this. |
|
|
| Report Abuse |
|
|
|
| 19 Dec 2013 09:56 PM |
| The first reply is the best answer and yes you can adorn models. |
|
|
| Report Abuse |
|
|
|
| 19 Dec 2013 10:16 PM |
You can adorn to models. Why? Have you've seen a selection box around an entire model when you hover over something in Studio or click it? That's what setting the adornee to a model is like.
"U BROKE THE TV U IDIOT!" - CeaselessSoul |
|
|
| Report Abuse |
|
|
| |
|
FootBa11
|
  |
| Joined: 16 Sep 2008 |
| Total Posts: 11501 |
|
|
| 20 Dec 2013 04:10 PM |
| When i try to adorn a selection box to a model it doesnt do anything qq |
|
|
| Report Abuse |
|
|
qrrrq
|
  |
| Joined: 27 Jan 2013 |
| Total Posts: 1252 |
|
| |
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 20 Dec 2013 04:13 PM |
| Ceas, since when can you adornee selec. boxes to models O_o |
|
|
| Report Abuse |
|
|
DrWaffler
|
  |
| Joined: 16 Sep 2011 |
| Total Posts: 4248 |
|
|
| 20 Dec 2013 04:40 PM |
Since always, cntkillme?
That is how games like Deadzone made their inventory things.
It's how I am doing it in my current project.
Although I keep my SelectionBox inside the users Camera. It is persistent in the Camera so yeah, any place that is local to the player would work.
--[Territory Conquest Developer, Valerian Studios Developer, Business Casual Narwhal Moai. ]]-- |
|
|
| Report Abuse |
|
|
|
| 20 Dec 2013 04:45 PM |
Never tested it, but you may be able to use the TargetFilter from the mouse to ignore those parts.
It is completely possible if you using mouse.hit, but using clickdetectors, i dont know :/. |
|
|
| Report Abuse |
|
|
DrWaffler
|
  |
| Joined: 16 Sep 2011 |
| Total Posts: 4248 |
|
|
| 20 Dec 2013 04:52 PM |
I use :GetMouse() but Tools suck big time (except their ability to have a custom mouse cursor :(
with :GetMouse() it's this easy
mouse = game.Players.LocalPlayer:GetMouse()
ignoreList = { "Item1","Item2","Item3" }
mouse.Move:connect(function() for _,v in pairs(ignoreList) do if mouse.Target.Parent:IsA("Model") and mouse.Target.Parent ~= v then game.Workspace.CurrentCamera.SelectionBox.Adornee = mouse.Target.Parent else game.Workspace.CurrentCamera.SelectionBox.Adornee = nil end end end)
Just make sure the stuff you want to have in a box is in a model, and make sure you have a selection box in the camera. You could do this the other way around, and have a list of things you WANT to have the box appear around, which is usually a better option.
--[Territory Conquest Developer, Valerian Studios Developer, Business Casual Narwhal Moai. ]]-- |
|
|
| Report Abuse |
|
|