Valuize
|
  |
| Joined: 04 Nov 2012 |
| Total Posts: 15531 |
|
|
| 04 Dec 2016 08:07 PM |
If I have a weapon on the ground, How do I make it so when I click on it it goes in my inventory?
|
|
|
| Report Abuse |
|
|
Valuize
|
  |
| Joined: 04 Nov 2012 |
| Total Posts: 15531 |
|
| |
|
Valuize
|
  |
| Joined: 04 Nov 2012 |
| Total Posts: 15531 |
|
| |
|
Nitrocell
|
  |
| Joined: 23 Jan 2011 |
| Total Posts: 5089 |
|
|
| 04 Dec 2016 08:10 PM |
put a click detector,
make a clone of that tool go into the backpack |
|
|
| Report Abuse |
|
|
Badawan
|
  |
| Joined: 18 Feb 2011 |
| Total Posts: 18646 |
|
| |
|
|
| 04 Dec 2016 08:10 PM |
Go ask WhoBloxedWho he scripted a game with similar properties
Roses are red, violets are blue, the next thing that'll be red is you. |
|
|
| Report Abuse |
|
|
Widths
|
  |
| Joined: 12 Aug 2014 |
| Total Posts: 41286 |
|
|
| 04 Dec 2016 08:10 PM |
in the handle of the weapon:
local x = Instance.new("ClickDetector", script.Parent) x.MouseClick:connect(function(c) script.Parent.Parent = c.Backpack x:Destroy() end)
-iJava |
|
|
| Report Abuse |
|
|
| |
|
enyahs7
|
  |
| Joined: 25 Apr 2008 |
| Total Posts: 9820 |
|
|
| 04 Dec 2016 08:11 PM |
| Yes I am and I wouldn't use a click detector those are horrible. Use mouse to detect the objects name and then clone it into the users backpack. |
|
|
| Report Abuse |
|
|
Nitrocell
|
  |
| Joined: 23 Jan 2011 |
| Total Posts: 5089 |
|
|
| 04 Dec 2016 08:12 PM |
local function onClick(player) newtool = (tool location).Clone() newtool.Parent=player.Backpack end clickDetector.MouseClick:connect(onClick) |
|
|
| Report Abuse |
|
|
enyahs7
|
  |
| Joined: 25 Apr 2008 |
| Total Posts: 9820 |
|
|
| 04 Dec 2016 08:14 PM |
| Not to be rude don't listen to anyone saying use a click detector lmao |
|
|
| Report Abuse |
|
|
Nitrocell
|
  |
| Joined: 23 Jan 2011 |
| Total Posts: 5089 |
|
|
| 04 Dec 2016 08:16 PM |
he's most likely making a giver and a click detector is all that is needed.
|
|
|
| Report Abuse |
|
|
Widths
|
  |
| Joined: 12 Aug 2014 |
| Total Posts: 41286 |
|
|
| 04 Dec 2016 08:55 PM |
im not gonna write a script more than 10 lines for some random guy if you want it easy for some crap game go with clickdetector
-iJava |
|
|
| Report Abuse |
|
|
eBasics
|
  |
| Joined: 16 Jan 2015 |
| Total Posts: 2381 |
|
|
| 04 Dec 2016 08:55 PM |
| Go on the scripters forums, they're pretty helpful. |
|
|
| Report Abuse |
|
|