game.Workspace.Baseplate.ClickDetector.MouseClick:Connect(function() -- idk why i do it on baseplate LOL
-- Code Goes Here --
end)
But if you mean that click a part to get the tool, just type it.
local tool = game.Lighting.YOURTOOLNAMEHERE:Clone() -- Your tool needs to be in the Lighting
local part = game.Workspace.YOURPARTNAMEHERE -- Dont forget to create a ClickDetector in your part
part:WaitForChild("ClickDetector").MouseClick:Connect(function(player)
tool.Parent = player.Backpack
end)