can someone help me with this tool for Rogue?
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
03 | function onButton 1 Down(mouse) |
05 | local hit = mouse.Target |
07 | humanoid = hit.Parent:findFirstChild( "Humanoid" ) |
08 | if (humanoid ~ = nil ) then |
09 | children = hit.Parent:children() |
11 | if (children [ i ] .className = = "Tool" , "HopperBin" ) then |
12 | children [ i ] .Parent = bin.Parent.Parent.Backpack |
21 | function onSelected(mouse) |
22 | print ( "Action Tool Selected" ) |
24 | mouse.Button 1 Down:connect( function () onButton 1 Down(mouse) end ) |
27 | bin.Selected:connect(onSelected) |