I dont understand what is wrong with it?

local humanoid = script.Parent:FindFirstChild("Humanoi­d")
name = humanoid.Parent.Name
player = game.Players:FindFirstChild(name)

function onTouched(hit)--



if hit.Parent.Name == "Tree" then
	hit.Parent.health.Value = hit.Parent.health.Value - 1


if hit.Parent.health.Value < 1 then
	hit.Parent:Destroy()
	
player.leaderstats.Wood.Value = player.leaderstats.Wood.Value + math.random(7,14)
 end	
end
end