of     1   

billyfun
#36319262Sunday, October 31, 2010 10:57 PM GMT

drop = script.Parent.DropPoint1 machine = script.Parent function insertId(gearId) local root = game:GetService("InsertService"):LoadAsset(gearId) game:GetService("InsertService"):Insert(root) local r = script.ToolClean:Clone() r.Disabled = false r.Parent = root root.Parent = machine.InsertedObjects root:MoveTo(drop.Position) end y = machine.Buttons:GetChildren() for z = 1, #y do local c = y[z]:GetChildren() for i = 1, #c do if c[i]:IsA("Part") and c[i]:findFirstChild("ClickDetector") ~= nil then local gearId = c[i]:findFirstChild("ItemID") c[i].ClickDetector.MouseClick:connect(function() if c[i].ClickDetector.Debounce.Value == false then local oldColor = c[i].BrickColor c[i].ClickDetector.Debounce.Value = true c[i].Reflectance = 0.6 c[i].BrickColor = BrickColor.new("Really black") insertId(gearId.Value) machine.Parent.ClickCount.Value = machine.Parent.ClickCount.Value + 1 wait(3) c[i].ClickDetector.Debounce.Value = false c[i].Reflectance = 0.3 c[i].BrickColor = oldColor end end) end end print("Gear category: " .. y[z].Name .. " connected") end
crazypotato4
#36319389Sunday, October 31, 2010 10:59 PM GMT

"game:GetService("InsertService"):Insert(root)" Might this be the problem?
billyfun
#36319473Sunday, October 31, 2010 11:01 PM GMT

I want to change it so it puts the tool into the backpack, instead of spawning the object on the drop.position brick
crazypotato4
#36319537Sunday, October 31, 2010 11:02 PM GMT

Idk.
billyfun
#36319719Sunday, October 31, 2010 11:05 PM GMT

I wanna change the root:MoveTo(drop.Position) to the players backpack... how do i do that?
crazypotato4
#36319784Sunday, October 31, 2010 11:07 PM GMT

root.Parent = whatevertheplayeris.Backpack?
billyfun
#36319845Sunday, October 31, 2010 11:08 PM GMT

I just wanna make it so when you click the button, it puts the tool into your backpack... (Whoever clicks it would be the player)
billyfun
#36435793Wednesday, November 03, 2010 3:37 AM GMT

Reply
billyfun
#36435818Wednesday, November 03, 2010 3:37 AM GMT

I need a giver that when you click the button, it takes a tool from lighting
crazypotato4
#36435838Wednesday, November 03, 2010 3:38 AM GMT

Not sure what you're asking, and I'm just gonna say I don't know hwo to do this so that you won't keep asking me for help ^_^ crazypotato4.Brain.On = false :D
RenderSettings
#36435855Wednesday, November 03, 2010 3:38 AM GMT

There are thse new things called 'Private Messages'
billyfun
#36435884Wednesday, November 03, 2010 3:39 AM GMT

T_T Ill do it myself... D:
billyfun
#36435955Wednesday, November 03, 2010 3:41 AM GMT

I already PMed him and he told me to come here!
crazypotato4
#36436004Wednesday, November 03, 2010 3:42 AM GMT

You said you would pay me to make a script, so I told you to go to the Lets Make A Deal forum, in no way did I mention this forum.

    of     1