return function()local n=require(script.Parent)it("\115\104\111\117\108\100 \098\101 \097 \102\117\110\099\116\105\111\110",function()(expect(n)).to.be.a("\102\117\110\099\116\105\111\110")end)it("\115\104\111\117\108\100 \115\117\112\112\111\114\116 \114\101\110\097\109\101\100 \104\117\109\097\110\111\105\100\115",function()(expect(function()local I=Instance.new("\070\111\108\100\101\114")local J=Instance.new("\072\117\109\097\110\111\105\100",I)J.Name="\056\051\056\051\097\099\056\100-\053\057\101\102-\053\053\053\052-\098\048\099\101-\055\100\051\052\051\051\055\056\048\049\101\053"local z={Character=I}assert(n(z)==nil)local f=Instance.new("\080\097\114\116")f.Name="\072\117\109\097\110\111\105\100\082\111\111\116\080\097\114\116"f.Parent=I assert(n(z)==f)J.Health=0 assert(n(z)==nil)J.Health=math.huge assert(n(z)==f)end)).never.to.throw()end)end
return function()
	local getAlivePlayerRootPart = require(script.Parent)

	it("should be a function", function()
		expect(getAlivePlayerRootPart).to.be.a("function")
	end)

	it("should support renamed humanoids", function()
		expect(function()
			local character = Instance.new("Folder")
			local humanoid = Instance.new("Humanoid", character)
			humanoid.Name = "8383ac8d-59ef-5554-b0ce-7d34337801e5"

			local player = { Character = character }
			assert(getAlivePlayerRootPart(player) == nil)

			local rootPart = Instance.new("Part")
			rootPart.Name = "HumanoidRootPart"
			rootPart.Parent = character
			assert(getAlivePlayerRootPart(player) == rootPart)

			humanoid.Health = 0
			assert(getAlivePlayerRootPart(player) == nil)
			humanoid.Health = math.huge
			assert(getAlivePlayerRootPart(player) == rootPart)
		end).never.to.throw()
	end)
end
