--[[
	InstantKill
	Place this Script inside a part.
	This part will kill any character touching it instantly.
--]]

local part = script.Parent

local function onTouched(otherPart)
	-- Confirm the part has a parent
	local character = otherPart.Parent
	if character then
		-- Look for a humanoid inside the part's parent
		local humanoid = character:FindFirstChild("Humanoid")
		if humanoid then
			-- If the humanoid exists, set its health to 0
			humanoid.Health = 0
		end
	end
end
