Help me with scripts

Greeting, I don’t know can I make a kill object within the humanoid. Scripts should work, but they are not.

Here are the script for the right arm :

function onTouched(h)
	local h = h.Parent:FindFirstChild("Humanoid")
	if h ~= nil then
		h.Health = 0
	end
end

script.Parent.Touched:Connect(onTouched)

NOTE – output is saying everything is working as it should work…

Provide us with more information here. What is getting touched, and what needs to happen?

Yeah, like @pail said, we need a bit more context. Either way, I fixed up your script.

script.Parent.Touched:Connect(function(hit)
	if hit.Parent ~= nil then
		print("Worked")
		local Humanoid = hit.Parent:FindFirstChild("Humanoid")
		Humanoid.Health = 0
	end
	
end)

Is this what you’re trying to do?