icanxlr8
|
  |
| Joined: 25 Feb 2009 |
| Total Posts: 3686 |
|
|
| 06 Aug 2012 10:52 AM |
| I'm making a Class thing, and I need to access a clicker's backpack. What do I have to do? |
|
|
| Report Abuse |
|
|
|
| 06 Aug 2012 10:55 AM |
-- For use in a LocalScript game.Players.LocalPlayer
-- Signature ------------- The Orange Juice said "Concentrate"... I did but nothing happened. |
|
|
| Report Abuse |
|
|
icanxlr8
|
  |
| Joined: 25 Feb 2009 |
| Total Posts: 3686 |
|
|
| 06 Aug 2012 11:00 AM |
So, if I put this { local weapon = game.Lighting.Bow local backpack = game.Players.LocalPlayer.Backpack script.Parent.MouseButton1Down:connect(function() weapon.Parent = backpack end) } and it should work? |
|
|
| Report Abuse |
|
|
|
| 06 Aug 2012 06:47 PM |
Yeah. But, if you want to place a copy of the weapon, you should use: local weapon = game.Lighting.Bow local backpack = game.Players.LocalPlayer.Backpack script.Parent.MouseButton1Down:connect(function() weapon:Clone().Parent = backpack end)
-- Info ----- User: glosgreen2 Time: 00:46 Date: 07/08/2012 |
|
|
| Report Abuse |
|
|
|
| 06 Aug 2012 06:48 PM |
Just remember to use a LocalScript for this method to work.
local weapon = game.Lighting.Bow local backpack = game.Players.LocalPlayer.Backpack script.Parent.MouseButton1Click:connect(function() weapon:Clone().Parent = backpack end)
-- Info ----- User: glosgreen2 Time: 00:00 Date: 00/00/2012 |
|
|
| Report Abuse |
|
|
|
| 06 Aug 2012 07:09 PM |
script.Parent.MouseButton1Click:connect(function local cloning = game.Lighting.RandomObject:Clone() if LocalPlayer.Leaderstats >= 1000 then cloning.Parent = LocalPlayer.Backpack LocalPlayer.Leaderstats = 1000 - 700 end) end
|
|
|
| Report Abuse |
|
|