As I’ve stated, you cannot use click detectors and tools at the same time. You could still use click detectors with the method I have provided, you just need to add and revise some parts of/to it.
For instance, if you want the max activation to still work, you could use this:
if (Tool.Handle.Position - Mouse.Target.Position).Magnitude <= Button.ClickDetector.MaxActivationDistance then
--code
end
You won’t be able to use ClickDetector.MouseClick
because this event won’t fire when a tool is equipped. ClickDetectors were designed like this because it will interfere with Tool.Activated
.
Tool.Activated:Connect(function() --listens for clicks
if Tool.Equipped then --checks if tool is equipped
if Mouse.Target and Mouse.Target:FindFirstChild("ClickDetector") then --checks if mouse is over a button
if (Tool.Handle.Position - Mouse.Target.Position).Magnitude <= Mouse.Target.ClickDetector.MaxActivationDistance then --checks if player is within max distance
--run code
end
end
end
end
If you are having trouble, don’t hesitate to ask me , my inbox is open, it’s the purpose of the devforum anyway.
If you want to hire someone to do the job, then go ahead, but if I were you, I’d give it a little try it’s simpler than you think and that’s how most developers learn how to code.