This script is inside the tool in a server script, but when the tool is activated nothing happens

local tool = script.Parent
local char = script.Parent.Parent
local deb = false
math.randomseed(tick())

tool.Activated:connect(function(heal)
	if deb == false then
		tool.Enabled = false
		deb = true
		local pe = script.ParticleEmitter:Clone()	
		pe.Parent = char:FindFirstChild("Torso")
		for i = 1, math.random(5,12) do
			char.Humanoid.Health = char.Humanoid.Health + 1
			wait(.5)
		end
		wait()
		pe:Destroy()
		deb = true
		tool.Enabled = true
	end
end)