|
| 16 Aug 2015 12:40 PM |
Hey everyone,
Is there a way to stop a tool automatically being selected when touched, either in its properties (though I doubt this, I've tried) or with code?
Thanks, Ems |
|
|
| Report Abuse |
|
|
Intern33t
|
  |
| Joined: 19 Nov 2010 |
| Total Posts: 1530 |
|
|
| 16 Aug 2015 12:41 PM |
script in tool:
script.Parent.Selected:connect(function()script.Parent:Deselect()end)
pls do u even try |
|
|
| Report Abuse |
|
|
|
| 16 Aug 2015 12:47 PM |
| Not working, no error in the output window either. |
|
|
| Report Abuse |
|
|
Intern33t
|
  |
| Joined: 19 Nov 2010 |
| Total Posts: 1530 |
|
|
| 16 Aug 2015 12:51 PM |
lol k do i even try
script.Parent.AncestryChanged:connect(function(c, p) if c == script.Parent then c.Parent = game.Players[p.Name] end end) |
|
|
| Report Abuse |
|
|
Sasayaki
|
  |
| Joined: 29 Jun 2007 |
| Total Posts: 33868 |
|
|
| 16 Aug 2015 12:52 PM |
"Is there a way to stop a tool automatically being selected when touched"
explain. |
|
|
| Report Abuse |
|
|
Intern33t
|
  |
| Joined: 19 Nov 2010 |
| Total Posts: 1530 |
|
|
| 16 Aug 2015 12:52 PM |
ok im not trying lol i hop dis work
script.Parent.AncestryChanged:connect(function(c, p) if c == script.Parent then c.Parent = game.Players[p.Name].Backpack end end) |
|
|
| Report Abuse |
|
|
|
| 16 Aug 2015 12:54 PM |
@Sasayaki
Say a tool is in the workplace. If a player goes over to touch it, it will be moved to the backpack of said player and will be equipped.
The problem I have is I would like it to not be equipped when it's moved. |
|
|
| Report Abuse |
|
|
Sasayaki
|
  |
| Joined: 29 Jun 2007 |
| Total Posts: 33868 |
|
|
| 16 Aug 2015 01:21 PM |
| make a giver instead that gets destroyed() which places it into the backpack |
|
|
| Report Abuse |
|
|