this part works

script.Parent.Activated:Connect(function()
script.Parent.Handle.Damage.Disabled = false 
end)

idk why this part wont work

function onTouch(part) 
	local humanoid = part.Parent:FindFirstChild("Humanoid") 
	if (humanoid ~= nil) then	-- if a humanoid exists, then
		humanoid.Health = 0	-- damage the humanoid
	end 
end

script.Parent.Touched:connect(onTouch)

1 comment

0

Give more context other than a generic "it doesn't work"