Is it possible to make a tool (screwdriver) which has exactly the same function as if you do not have a tool equipped. So it is still possible to click on eg "Clickdetector" when you have the tool equipped. I am noob in the script making, but try to learn and are unfortunately not the type who learns by reading but more the type who learn by doing! I have created a tool and inserted a Localscrip with the following contents.

RBXScriptSignal Button1Down ()

local bin = script.Parent 
bin.Selected:connect(function(Mouse)
	Mouse.Button1Down:connect(function()
		print("Button1Down")
	end)
end)

5 comments

0

Why would you make a tool if it doesn't do anything?

0

Because when you click a "screw" (brick) with the screwdriver equipped, the screw are going to erase itself. I could click without the screwdriver, but i it not give the right "feeling" of "doing a job"

0

Well, it is possible. Before we get into code however, I need to see your attempt.

0

I am noob in the script making, but try to learn and are unfortunately not the type who learns by reading but more the type who learn by doing! I have created a tool and inserted a Localscrip with the following contents. RBXScriptSignal Button1Down () local bin = script.Parent bin.Selected:connect(function(Mouse) Mouse.Button1Down:connect(function() print("Button1Down") end) end)