Ray not working for some dummies?

I’m trying to use rays for my enemies however for some reason 2 out of the 7 dummies I have just don’t seem to work?

while true do
	
	for EnemyName,EnemyInfo in pairs(Enemies) do

		if EnemyFolder:FindFirstChild(EnemyName) then
			
			--print("Enemy Found",EnemyName)
			
			local EnemyCharacter = EnemyFolder:FindFirstChild(EnemyName)
			local EnemeyCharacterHMR = EnemyCharacter.HumanoidRootPart
			local TargetHMR = NearestPlayer(EnemeyCharacterHMR.Position)
			
			if TargetHMR then
				
				--print("Target Found",TargetHMR.Parent.Name)
				
				local Ray = Ray.new(EnemeyCharacterHMR.Position,TargetHMR.Position)
				local Part = workspace:FindPartOnRay(Ray,TargetHMR)

				if Part ~= nil then
					print("Part",Part.Parent.Humanoid)
					if Part.Parent:FindFirstChild("Humanoid") then
						print("Humanoid")
						Guns[EnemyInfo.Gun](TargetHMR,EnemyCharacter)
					else
						print("No Humanoid")
					end
				else
					print("No Part",EnemeyCharacterHMR.Parent.Name)
				end	

				
			end
			
		end
		
	end
	
	wait(1)
	
end

From this video you can see that for some reason the 4th dummy isn’t finding the part but the other 3 work just fine?

Sorry if this post dissapointed you, but I personally think this isn’t the right category for posting problems. I think it might be better if you switch this post to #help-and-feedback:scripting-support