I'm not sure what I did wrong. I get an error when doing these functions to my tool.
local tool = script.Parent.Parent
tool.Equipped:Connect(function(equip)
local humanoid = equip:FindFirstChild("Humanoid")
if (humanoid ~= nil) then
humanoid.Health = 50
end
end)
tool.Unequipped:Connect(function(equip)
local humanoid = equip:FindFirstChild("Humanoid")
if (humanoid ~= nil) then
humanoid.Health = 100
end
end)

3 comments
Exactly like I said above, equip is not a parameter of tool.Equiped.
Judge Duckie you didn't really say that. But ok!
Thank you so much Azarth!