local Tool = script.Parent
local mouse = game.Players.LocalPlayer:GetMouse()
local ToolEnabled = true
Tool.Activated:connect( function()
if not ToolEnabled then
return
end
ToolEnabled = false
if mouse.Target.Position.magnitude == _G.ve1.magnitude and _G.humanoid1.Health < 101 then
_G.humanoid1.Health = _G.humanoid1.Health + 6
end
ve1 is a vector3
This is not the full script but the error is in the "if statement"

1 comment
Yup. Although, the mouse can target things other than parts, such as terrain.