local region = Region3.new(Vector3.new(5,0,5), Vector3.new(15,15,15))

local part = Instance.new("Part")
part.Anchored = true
part.Size = region.Size
part.Parent = game.Workspace
part.CanCollide = false
part.Transparency = 0.5

while true do
	wait()
	local partsInRegion = workspace:FindPartsInRegion3(region, part, 1000)
	for i, part in pairs(partsInRegion) do
		if part.Parent:FindFirstChild("Humanoid") ~= nil then
			print("He's in the region, we got you: "..part.Parent.Name)
			local char = part.Parent
			char.Humanoid:TakeDamage(char.Humanoid.MaxHealth)
		end
	end
end

This Region3 script creates a part and is supposed to, when touched, print the phrase shown above and kill the player, I am following a tutorial by TheDevKing on youtube and I was sure I followed his instructions exactly, can someone please tell me whats wrong, so that I can find a fix?