okay, so i have been working on a touch tool and it works ... but not fully when i get someones tool, it takes it away from the other player even though it should just clone it into my backpack and leave it in the the other players as well maybe one of you can find my mistake
bin=script.Parent function onButton1Down(mouse) mouse.Icon = "rbxasset://textures\\GunWaitCursor.png" local hit = mouse.Target if (hit ~= nil) then humanoid = hit.Parent:findFirstChild("Humanoid") if (humanoid ~= nil) then children = hit.Parent:children() for i=1,#children do if (children[i].className == "Tool", "HopperBin") then children[i].Parent = bin.Parent.Parent.Backpack end end end end mouse.Icon = "rbxasset://textures\\GunCursor.png" end function onSelected(mouse) print("Action Tool Selected") mouse.Icon = "rbxasset://textures\\GunCursor.png" mouse.Button1Down:connect(function() onButton1Down(mouse) end) end bin.Selected:connect(onSelected)
on line 9 its
children = hit.Parent:GetChildren()