Answered by
7 years ago Edited 7 years ago
Simple answer. Whenever you create your tool, make sure that you create an brick to click first. Make the brick look precisely like the tool itself, by adding the mesh and giving it the correct dimensions. Place it down, and give it a click detector. Place your working tool in Lightning. Next, put a script inside of that brick that looks like the tool. Insert this code into the script:
05 | if not Player.Backpack:FindFirstChild( "Sword" ) then |
06 | local Tool = game.Lighting.Sword:Clone() |
07 | Tool.Parent = Player.Backpack |
10 | script.Parent.ClickDetector.MouseClick:connect(boop) |
Finally, enter your game and click the brick. It should put the tool from inside Lightning into your backpack!