local function N(p)if p and p~=game.Workspace then local f=p:FindFirstChild("\072\117\109\097\110\111\105\100")if f then return p,f else return N(p.Parent)end end return nil end
-- Returns the ancestor that contains a Humanoid, if it exists
local function FindCharacterAncestor(subject)
	if subject and subject ~= game.Workspace then
		local humanoid = subject:FindFirstChild("Humanoid")
		if humanoid then
			return subject, humanoid
		else
			return FindCharacterAncestor(subject.Parent)
		end
	end
	return nil
end
